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(#1016478) + "\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 #1003662
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026864 |
Snippet name: | Add Stefan's OS v6 To Autostart (Linux) |
Eternal ID of this version: | #1026864/2 |
Text MD5: | 44064e721f6d6a5bcc65b8b33f3a10f1 |
Transpilation MD5: | 8f34a94e71f2b46a614fdc39aafe77bd |
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:43:02 |
Source code size: | 693 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 248 / 338 |
Version history: | 1 change(s) |
Referenced in: | [show references] |