Libraryless. Click here for Pure Java version (2593L/17K/61K).
!7 p { if (!isLinux()) fail("Not on Linux"); File autostart_dir = userDir(".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() + " " + psI(#1024932) + "\n" + " Icon=\n" + " Terminal=false\n" + " Type=Application\n" + " Encoding=UTF-8\n" + " Categories=Accessories\n"); print("Done!"); }
Began life as a copy of #1026864
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026865 |
Snippet name: | Add Stefan's OS v7 To Autostart (Linux) |
Eternal ID of this version: | #1026865/1 |
Text MD5: | b29a8a6f4444770d9d0a8da331ff9453 |
Transpilation MD5: | b611b0e70165b44bf69d61ba1535520e |
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:45:36 |
Source code size: | 693 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 237 / 331 |
Referenced in: | [show references] |