Bonsoir, voilà j'aurais besoin d'aide pour finir mon scrpit de Race The WTCC Game. Le problème se pose surtout au niveau du raccourci puisque ce jeu utilise Steam et sous Windows j'ai un raccourci qui ressemble à ça :
D:\\Steam\\Steam.exe -applaunch 4230
Le problème c'est que j'arrive pas à faire ça avec POL
#!/bin/bash
# Date : (2009-07-29 20-30)
# Last revision : (2009-11-20 20-30)
# Wine version used : 1.1.33
# Distribution used to test : Ubuntu 9.10
# Author : thib25
# Licence : Retail
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
NAME="Race The WTCC Game"
PREFIX="Steam"
if [ "$POL_LANG" == "fr" ]; then
INSTALLATION="Installation en cours..."
MENU="Voulez-vous installer l'extension Caterham ?"
WAIT="Appuyer sur suivant seulement quand l'installation sera finit"
else
INSTALLATION="Installation in progress..."
MENU="Do you want to install the Caterham's extension ?"
WAIT="Click on Next only when the installation is finish"
fi
wget http://i43.tinypic.com/mcpw1e.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_presentation "$NAME" "SimBin" "www.race-game.org" "thib25" "$PREFIX"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "RaceSetup.exe"
select_prefix "$REPERTOIRE/wineprefix/$PREFIX/"
POL_SetupWindow_prefixcreate
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
Set_Desktop On 800 600
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME"
cd "$CDROM"
wine "RaceSetup.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$WAIT" "$NAME"
POL_SetupWindow_question "$MENU" "$NAME"
if [ "$APP_ANSWER" == "TRUE" ] ; then
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "RaceCaterhamSetup.exe"
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME Caterham"
cd "$CDROM"
wine "RaceCaterhamSetup.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$WAIT" "$NAME"
fi
POL_SetupWindow_make_shortcut "$NAME" "$PROGRAMFILES/Steam" "Steam.exe -applaunch 4230"
Set_Desktop Off
POL_SetupWindow_Close
exit