Libraryless. Click here for Pure Java version (2593L/17K/61K).
1 | !7 |
2 | |
3 | p { |
4 | if (!isLinux()) fail("Not on Linux"); |
5 | File autostart_dir = userDir(".config/autostart"); |
6 | autostart_dir.mkdirs(); |
7 | File file = new File(autostart_dir, "javax.desktop"); |
8 | File javaxPath = javaxJarPath(); |
9 | print("Writing " + file); |
10 | saveTextFile(file, |
11 | " [Desktop Entry]\n" + |
12 | " Version=1.0\n" + |
13 | " Name=JavaX\n" + |
14 | " Name[en_US]=JavaX\n" + |
15 | " Comment=JavaX Runner\n" + |
16 | " Exec=java -jar " + javaxPath.getAbsolutePath() + " " + psI(#1024932) + "\n" + |
17 | " Icon=\n" + |
18 | " Terminal=false\n" + |
19 | " Type=Application\n" + |
20 | " Encoding=UTF-8\n" + |
21 | " Categories=Accessories\n"); |
22 | print("Done!"); |
23 | } |
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: | 238 / 332 |
Referenced in: | [show references] |