Libraryless. Click here for Pure Java version (2435L/16K/57K).
!7 p { File autostart_dir = new File(userHome(), ".config/autostart"); autostart_dir.mkdirs(); File file = new File(autostart_dir, "javax.desktop"); File javaxPath = javaxJarPath(); print("Writing " + file); saveTextFile(file, " [Desktop Entry]\n" + " Version=1.0\n" + " Name=JavaX\n" + " Name[en_US]=JavaX\n" + " Comment=JavaX Runner\n" + " Exec=java -jar " + javaxPath.getAbsolutePath() + "\n" + " Icon=\n" + " Terminal=false\n" + " Type=Application\n" + " Encoding=UTF-8\n" + " Categories=Accessories\n"); print("Done!"); }
download show line numbers debug dex old transpilations
Travelled to 19 computer(s): aoiabmzegqzx, bhatertpkbcr, bkpbhqsukdzp, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xidunzvaqbkw, xrpafgyirdlv, ychswryhhvyu
No comments. add comment
Snippet ID: | #1003662 |
Snippet name: | Add JavaX To Autostart (Linux) |
Eternal ID of this version: | #1003662/3 |
Text MD5: | 293f02823b64da35321502a88c5eb6b2 |
Transpilation MD5: | f321f16213329d69c5bac2daea92f1b9 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-29 21:34:10 |
Source code size: | 643 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 648 / 742 |
Version history: | 2 change(s) |
Referenced in: | [show references] |