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

17
LINES

< > BotCompany Repo | #1026392 // addJavaxProtocolToMimeAppsList

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

Transpiled version (2730L) is out of date.

sS addJavaxProtocolToMimeAppsList() {
  File desktopFile = userDir(".local/share/applications/javax-protocol.desktop");
  saveTextFile(desktopFile, [[
[Desktop Entry]
Name=javax URL Handler
GenericName=javax URL Handler
Comment=Handle URL Scheme javax://
Exec=$HOME/bin/jforfirefox %u
Terminal=false
Type=Application
MimeType=x-scheme-handler/javax;
Icon=
Categories=Development;Utility;
]].replace("$HOME", f2s(userDir())));

  ret addAssociationToMimeAppsList("x-scheme-handler/javax", f2s(desktopFile));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026392
Snippet name: addJavaxProtocolToMimeAppsList
Eternal ID of this version: #1026392/3
Text MD5: 46d9f3d3c352bf209eb5f8a2eb2c8820
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-02 13:27:48
Source code size: 524 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 213 / 362
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)