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.

// uses v6
static File stefansOS_addToLinuxStartMenu() {
  File file = linuxStartMenuApplicationsFolder("stefans-os.desktop");
  File javaxPath = javaxJarPath();
  S cmd = _javaCommand() + " -jar " + platformQuote(javaxPath) + " " + parseSnippetID(#1016478);
  print("Command used: " + cmd);
  saveTextFileVerbose(file, replaceDollarVars_unindentMLS([[
    [Desktop Entry]
    Version=6.0
    Name=Stefan's OS v6
    Name[en_US]=Stefan's OS
    Comment=by Stefan Reich
    Exec=$cmd
    Icon=
    Terminal=false
    Type=Application
    ncoding=UTF-8
    Categories=Accessories;
  ]], +cmd));
  infoBox("Stefan's OS added to start menu");
  ret file;
}

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: 104 / 159
Version history: 3 change(s)
Referenced in: [show references]