Libraryless. Click here for Pure Java version (15096L/109K).
!7 module BurnDVD { S directory, dvdDrive; bool add; start { if (empty(dvdDrive)) setField(dvdDrive := "/dev/dvd"); } visualize { ret makeForm3( "Directory:", dm_fieldTextField('directory), "DVD drive:", dm_fieldTextField('dvdDrive), "", dm_fieldCheckBox("Add to DVD if there is data on it", 'add), "", jbutton("Burn it!", rThread burnIt)); } void burnIt enter { assertLinux(); if (!dirExists(directory)) ret with infoBox("Directory doesn't exist: " + directory); if (contains(loadTextFile(backtickToConsole("growisofs " + (add ? "-M" : "-Z") + " " + bashQuote2(dvdDrive) + " -r -J " + bashQuote2(directory))), "FATAL")) infoBox("Error!"); else infoBox("DVD made!"); } }
Began life as a copy of #1020282
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020285 |
| Snippet name: | Linux: Burn Directory To DVD (new direct version) |
| Eternal ID of this version: | #1020285/1 |
| Text MD5: | b49f87d2b4f6e02857e94e763001776d |
| Transpilation MD5: | fad8acd178dd15ed6dcc8cd3ac6b0074 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-12 16:33:13 |
| Source code size: | 789 bytes / 28 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 517 / 673 |
| Referenced in: | [show references] |