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

7
LINES

< > BotCompany Repo | #1026254 // openFileInBrowser

JavaX fragment (include)

svoid openFileInBrowser(File f) {
  if (f == null) ret;
  /*if (isLinux())
    nohup(print(firstCmdOnPATH_mandatory("xdg-open") + " " + platformQuote(f)));
  else*/
    openPlatformBrowser(fileToURL(f));
}

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: #1026254
Snippet name: openFileInBrowser
Eternal ID of this version: #1026254/3
Text MD5: 9b4fc22f1a2fe7c9f1b196037d455d0a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-05 16:32:29
Source code size: 211 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 116 / 146
Version history: 2 change(s)
Referenced in: [show references]