Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1013993 // chromeCmd - now prefers Chrome (has speech!) over Chromium

JavaX fragment (include)

static S chromeCmd() {
  ret chromeCmd(false);
}

static S chromeCmd(bool needSpeech) {
  ret platformQuote(
    isWindows() ? f2s(assertNotNull("chrome.exe not found", windowsFindChromeExe())) :
    isMac() ? "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" :
    needSpeech
      ? firstCmdOnPATH_mandatory("google-chrome")
      : firstCmdOnPATH_mandatory("google-chrome", "chromium-browser"));
}

Author comment

Began life as a copy of #1009814

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1013993
Snippet name: chromeCmd - now prefers Chrome (has speech!) over Chromium
Eternal ID of this version: #1013993/8
Text MD5: c8265ed8785ee4380c099afeabd9a6ef
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-20 12:36:00
Source code size: 424 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 360 / 423
Version history: 7 change(s)
Referenced in: [show references]