Libraryless. Click here for Pure Java version (5870L/34K).
1 | svoid vlc(File/S f) { |
2 | if (f == null) ret; |
3 | if (isRoot()) warn("VLC probably doesn't want to be run as root"); |
4 | if (isOnPATH("vlc")) |
5 | ret with nohup("vlc " + platformQuote(f)); |
6 | if (isWindows()) { |
7 | File v = newFile("C:\\Program Files\\VideoLAN\\VLC\\VLC.exe"); |
8 | if (v.exists()) |
9 | ret with nohup(platformQuote(v) + " " + platformQuote(f)); |
10 | } |
11 | fail("Can't find VLC"); |
12 | } |
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: | 279 / 562 |
Version history: | 6 change(s) |
Referenced in: | [show references] |