I corrected the script. There no way to copy and paste the debugger text. I have to send to pastebin and it's a hassle. There needs to be a copy and paste in the debugger.
This script should work, but the make shortcut isn't. If I make a shortcut from playonlinux, it will run it.
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]; then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
POL_SetupWindow_Init
POL_SetupWindow_presentation "EmpireEarth" "Real Steel Studios" "http://fallout.bethsoft.com/" "username" "EmpireEarth"
POL_Wine_SelectPrefix "EmpireEarth"
POL_SetupWindow_prefixcreate
cd $HOME
POL_SetupWindow_browse "Plese select the location of the install file" "Select file"
POL_SetupWindow_wait_next_signal "Installing EmpireEarth..." "EmpireEarth"
wine $APP_ANSWER
POL_SetupWindow_detect_exit
POL_SetupWindow_reboot
POL_SetupWindow_make_shortcut "EmpireEarth" "Program Files/GOG.com/Empire Earth Gold Edition/EmpireEarth/" "Empire Earth.exe" "" "EmpireEarth"
POL_SetupWindow_Close
exit
File :EmpireEarth
Date : 12/05/11 13:15:30
PlayOnLinux Version : 4.0.14
File content :
#!/bin/bash
[ "$PLAYONLINUX" = "" ] \\&\\& exit 0
source "$PLAYONLINUX/lib/sources"
export WINEPREFIX="/home/alex/.PlayOnLinux//wineprefix/EmpireEarth"
export WINEDEBUG=""
cd "/home/alex/.PlayOnLinux//wineprefix/EmpireEarth/drive_c/Program Files/GOG.com/Empire Earth Gold Edition/EmpireEarth/"
POL_Wine "Empire Earth.exe" $@
Output :
12/05/11 13:15:30 - [main] Message: Debugger is starting
Console:
EmpireEarth: line 6: cd: /home/alex/.PlayOnLinux//wineprefix/EmpireEarth/drive_c/Program Files/GOG.com/Empire Earth Gold Edition/EmpireEarth/: No such file or directory
[POL_Wine] Message: Running wine- Empire Earth.exe
wine: cannot find 'Empire Earth.exe'
[POL_Wine] Message: Wine return: 2
Edité par realta_taisteal