Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1031175 // stefansOS_addToLinuxStartMenu

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (3944L) is out of date.

1  
// uses v6
2  
static File stefansOS_addToLinuxStartMenu() {
3  
  File file = linuxStartMenuApplicationsFolder("stefans-os.desktop");
4  
  File javaxPath = javaxJarPath();
5  
  S cmd = _javaCommand() + " -jar " + platformQuote(javaxPath) + " " + parseSnippetID(#1016478);
6  
  print("Command used: " + cmd);
7  
  saveTextFileVerbose(file, replaceDollarVars_unindentMLS([[
8  
    [Desktop Entry]
9  
    Version=6.0
10  
    Name=Stefan's OS v6
11  
    Name[en_US]=Stefan's OS
12  
    Comment=by Stefan Reich
13  
    Exec=$cmd
14  
    Icon=
15  
    Terminal=false
16  
    Type=Application
17  
    ncoding=UTF-8
18  
    Categories=Accessories;
19  
  ]], +cmd));
20  
  infoBox("Stefan's OS added to start menu");
21  
  ret file;
22  
}

Author comment

Began life as a copy of #1009124

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031175
Snippet name: stefansOS_addToLinuxStartMenu
Eternal ID of this version: #1031175/4
Text MD5: d7534d444249c834342a5c323edf7efb
Author: stefan
Category: javax / linux
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-11-03 12:37:06
Source code size: 673 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 109 / 166
Version history: 3 change(s)
Referenced in: [show references]