Libraryless. Click here for Pure Java version (1318L/9K/33K).
1 | !7 |
2 | |
3 | sS url; |
4 | |
5 | p {
|
6 | if (empty(url)) |
7 | url = "http://tinybrain.de/" + psI(programID()); |
8 | S path = firefoxExePath(); |
9 | if (isWindows() && !fileExists(path)) fail("Firefox not found in " + path);
|
10 | nohup(bashQuote(path) + " " + bashQuote(url)); |
11 | print("Firefox started?");
|
12 | } |
13 | |
14 | sS firefoxExePath() {
|
15 | ret isWindows() |
16 | ? "c:\\Program Files\\Mozilla Firefox\\Firefox.exe" |
17 | : "firefox"; |
18 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wtqryiryparv
No comments. add comment
| Snippet ID: | #1007361 |
| Snippet name: | Simple Firefox starting test |
| Eternal ID of this version: | #1007361/3 |
| Text MD5: | 0ec64c81dbcc18d0f4b615f364352fd5 |
| Transpilation MD5: | 9db806e64dc3d926efec77944c0640c1 |
| Author: | stefan |
| Category: | javax / desktop |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-03-16 12:09:10 |
| Source code size: | 407 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 828 / 999 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |