Forums

[Script] ImgBurn (Screenshots in 2nd post)

It burns images. :)

Auteur Réponses
Ronin DUSETTE Vendredi 1 Février 2013 à 18:20
Ronin DUSETTE

Just finished preparing and testing this script for ImgBurn. Its a very simple one, but for sure will help. 

##################################################

[code language=playonlinux]
#!/bin/bash
# Date : (2013-02-01)
# Last revision : (2013-02-01)
# Distribution used to test : Kubuntu 12.04 LTS
# Author : DJYoshaBYD
# Licence : GPLv3
# PlayOnLinux: 4.1.9
 
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="ImgBurn"
WINEVERSION="1.4.1"
TITLE="ImgBurn"
 
#Initialization
POL_SetupWindow_Init
POL_RequiredVersion "4.1.9" || POL_Debug_Fatal "$APPLICATION_TITLE 4.1.9 is required to install $TITLE"
 
POL_Debug_Init
 
# Presentation
POL_SetupWindow_presentation "$TITLE" "Lightning UK!" "http://www.imgburn.com" "DJYoshaBYD" "ImgBurn"
 
# Create Prefix
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
 
#Dependencies
 
# Configuration
Set_OS "winxp"
POL_Wine_Direct3D "DirectDrawRenderer" "gdi"
 
# Installation
POL_SetupWindow_browse "$(eval_gettext 'Please select $TITLE install file. DO NOT CHECK RUN IMGBURN AT END OF INSTALLATION:')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
GC_DONT_GC=1 POL_Wine "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
 
# Create Shortcuts
POL_Shortcut "imgburn.exe" "ImgBurn"
 
POL_SetupWindow_message "$(eval_gettext 'NOTICE: POL does not condone piracy. Please use $TITLE in a respectable manner')" "$TITLE"

POL_SetupWindow_Close
exit 0
[/code]
#####################################

Edité par RoninDusette


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Vendredi 1 Février 2013 à 21:34
Ronin DUSETTE


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Ronin DUSETTE Samedi 2 Février 2013 à 1:13
Ronin DUSETTE

Here is the link to the folder with the small icons and setup images

http://djyoshabyd.quicktech209.com/repository/Resources/Icons/ImgBurn/

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Samedi 2 Février 2013 à 1:28
petch

Done.

Thinking of it, there's a slight thing that can be improved in your script: put POL_SetupWindow_browse before any prefix creation or tweaking.
This lowers the probability of creating a prefix for nothing, and is a good general rule.
Ronin DUSETTE Samedi 2 Février 2013 à 1:38
Ronin DUSETTE

What do you mean by creating a prefix for nothing? For instance, if they had a prefix that they wanted that installed to by itself?

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
petch Samedi 2 Février 2013 à 10:15
petch

I mean, if there's any chance that the script is interrupted (user can't find the file (s)he thought (s)he had, understands halfway that it's a commercial software, download fails,...), which in practice is almost always the case, it's better to create virtual drives as late as possible in the script.

Ideally, you'd want scripts that go like this:
- presentation
- questions to the user
- downloads outside on the virtual drive (that's what $POL_USER_ROOT/tmp/ is for)
- create the virtual drive
- (install predependencies/tweaks)
- run program installation
- (install postdependencies/tweaks)
- create shortcuts

It's not always possible to reach that goal exactly (in fact it's in a way currently impossible: the installation of dependencies should be separated from their download, but POL "functions" do both; that's ok only because most of the time the dependencies will be in fact already cached), but that's one of the things the best scripts aim to.
Someone even posted it in the bug tracker as a feature request for POL, but it's more a property of each script than something that can be enforced globally...

Edité par petch

Ronin DUSETTE Samedi 2 Février 2013 à 18:34
Ronin DUSETTE

ahhhh. ok. That makes a lot of sense. Ill make sure to keep a note of that.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
ntzrmtthihu777 Mercredi 13 Mars 2013 à 5:59
ntzrmtthihu777

:P never seen a reason to install another disc burning software for linux, let alone one from windows. Between Brasero and dd I am pretty well set
Ronin DUSETTE Mercredi 13 Mars 2013 à 17:43
Ronin DUSETTE

Well, the main reason people use this is for making backups of xbox 360 games (that you own already, obviously). It can use a .DVD file to set the layer break for a dual layer disc. Very handy tool, and straight to the point.

Its easier for someone to do it this way, which is also the only approved and supported program for burning those discs by any of the xbox forums, as opposed to the commandline linux way to burn these particular discs.

Its for a niche crowd. Not everyone. :) Its personally the only reason I use it is for my xbox.

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
ntzrmtthihu777 Mercredi 13 Mars 2013 à 23:52
ntzrmtthihu777

Interesting. Had I an xbox360 disc I may have a go at making a native tool, but I don't so :P
Ronin DUSETTE Jeudi 14 Mars 2013 à 16:39
Ronin DUSETTE

Yeah. that would actually be handy. Especially considering that ABGX has a native linux app, so an app that could burn them like that would be cool. But hey, why reinvent the wheel, right? lol:)

Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com