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.

1  
sS addJavaxProtocolToMimeAppsList() {
2  
  File desktopFile = userDir(".local/share/applications/javax-protocol.desktop");
3  
  saveTextFile(desktopFile, [[
4  
[Desktop Entry]
5  
Name=javax URL Handler
6  
GenericName=javax URL Handler
7  
Comment=Handle URL Scheme javax://
8  
Exec=$HOME/bin/jforfirefox %u
9  
Terminal=false
10  
Type=Application
11  
MimeType=x-scheme-handler/javax;
12  
Icon=
13  
Categories=Development;Utility;
14  
]].replace("$HOME", f2s(userDir())));
15  
16  
  ret addAssociationToMimeAppsList("x-scheme-handler/javax", f2s(desktopFile));
17  
}

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: 214 / 363
Version history: 2 change(s)
Referenced in: [show references]