Libraryless. Click here for Pure Java version (5870L/34K).
svoid vlc(File/S f) { if (f == null) ret; if (isRoot()) warn("VLC probably doesn't want to be run as root"); if (isOnPATH("vlc")) ret with nohup("vlc " + platformQuote(f)); if (isWindows()) { File v = newFile("C:\\Program Files\\VideoLAN\\VLC\\VLC.exe"); if (v.exists()) ret with nohup(platformQuote(v) + " " + platformQuote(f)); } fail("Can't find VLC"); }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, uelavcdoioby, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1025141 |
| Snippet name: | vlc - start VLC player |
| Eternal ID of this version: | #1025141/7 |
| Text MD5: | 13d61ac3752cace89c99b65816ffcade |
| Transpilation MD5: | 19fdfca7ca9e7f693c722de6c48e8fb4 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-27 07:00:09 |
| Source code size: | 398 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 425 / 742 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |