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)

1  
static S chromeCmd() {
2  
  ret chromeCmd(false);
3  
}
4  
5  
static S chromeCmd(bool needSpeech) {
6  
  ret platformQuote(
7  
    isWindows() ? f2s(assertNotNull("chrome.exe not found", windowsFindChromeExe())) :
8  
    isMac() ? "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" :
9  
    needSpeech
10  
      ? firstCmdOnPATH_mandatory("google-chrome")
11  
      : firstCmdOnPATH_mandatory("google-chrome", "chromium-browser"));
12  
}

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: 437 / 500
Version history: 7 change(s)
Referenced in: [show references]