Forums

Path problem using non-system wine default in POL

Auteur Réponses
diziet Mardi 6 Janvier 2009 à 3:09
dizietAnonymous

if the default wine version for POL is set to anything other than 'system' then before a script is run that version is added to the front of the path variable- perfectly reasonable. then when an installed game script is run the path for the assigned wine version for that game is added to the front of the path - again perfectly reasonable,

BUT

in konsole, running the script results in the wine version from the first version listed in the path running - as it should. but in the POL debugger the wine version from the second path in the path variable runs - which i totally cannot explain.

to demonstrate i have altered my steam script to simply echo the path and then return the wine version, as follows:

#!/bin/bash
PATH="/home/diziet/.PlayOnLinux/WineVersions/1.1.11/usr/bin:$PATH"
export WINEPREFIX="/home/diziet/.PlayOnLinux/wineprefix/Steam"
export WINEDEBUG="-all"
cd "/home/diziet/cedega_games/steam"

echo $PATH
#wine "steam.exe" $@

wine --version


look what happens when i run the script in konsole:

$ cd .PlayOnLinux/configurations/installed/

set the path to include a wine version:

$ PATH="/home/diziet/.PlayOnLinux/WineVersions/0.9.60/usr/bin:$PATH"

$ echo $PATH
/home/diziet/.PlayOnLinux/WineVersions/0.9.60/usr/bin:/home/diziet/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt4/bin

$ ./Steam
/home/diziet/.PlayOnLinux/WineVersions/1.1.11/usr/bin:/home/diziet/.PlayOnLinux/WineVersions/0.9.60/usr/bin:/home/diziet/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt4/bin
wine-1.1.11

now look what happens in POL debugger when i've set the default version to 0.9.60

PlayOnLinux Console
-------------------

PlayOnLinux: ~/.PlayOnLinux > echo $PATH
/home/diziet/.PlayOnLinux/WineVersions/0.9.60/usr/bin:/home/diziet/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt4/bin

PlayOnLinux: ~/.PlayOnLinux > cd configurations/installed/

PlayOnLinux: ~/.PlayOnLinux/configurations/installed > ./Steam
/home/diziet/.PlayOnLinux/WineVersions/1.1.11/usr/bin:/home/diziet/.PlayOnLinux/WineVersions/0.9.60/usr/bin:/home/diziet/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt4/bin
wine-0.9.60


see that despite version 1.1.11 appearing first in the path - and we know it exists - version 0.9.60 is used, and of course will be used for all games since it is the default version that POL adds to the path before any game script is run - even though it should be superceded by the game script path setting.

this makes no sense to me but the evidence is there, something odd with paths.
it occurred to me that the problem might be with xterm since the POL debugger looks exactly like xterm to me, but running xterm from konsole - to get the environment - gives what you'd expect:

$ echo $PATH
/home/diziet/.PlayOnLinux/WineVersions/0.9.60/usr/bin:/home/diziet/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt4/bin:/usr/lib/qt4/bin
$ ./Steam
/home/diziet/.PlayOnLinux/WineVersions/1.1.11/usr/bin:/home/diziet/.PlayOnLinux/WineVersions/0.9.60/usr/bin:/home/diziet/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt4/bin:/usr/lib/qt4/bin
wine-1.1.11

can anyone reproduce this?

diziet

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