Het forum

[Script] ImgBurn (Screenshots in 2nd post)

It burns images. :)

Auteur Antwoorden
Ronin DUSETTE Vrijdag 1 Februari 2013 om 18:20
Ronin DUSETTE
Admin

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]
#####################################

Aangepast door 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 Vrijdag 1 Februari 2013 om 21:34
Ronin DUSETTE
Admin


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 Zaterdag 2 Februari 2013 om 1:13
Ronin DUSETTE
Admin

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 Zaterdag 2 Februari 2013 om 1:28
petch
Developer

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 Zaterdag 2 Februari 2013 om 1:38
Ronin DUSETTE
Admin

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 Zaterdag 2 Februari 2013 om 10:15
petch
Developer

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...

Aangepast door petch

Ronin DUSETTE Zaterdag 2 Februari 2013 om 18:34
Ronin DUSETTE
Admin

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 Woensdag 13 Maart 2013 om 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 Woensdag 13 Maart 2013 om 17:43
Ronin DUSETTE
Admin

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 Woensdag 13 Maart 2013 om 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 Donderdag 14 Maart 2013 om 16:39
Ronin DUSETTE
Admin

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