The forum

Problem with 4.0.6

REPERTOIRE variable not set

Author Replies
Gustra Sunday 21 August 2011 at 0:00
GustraAnonymous

Hi,

I upgraded to 4.0.6 today and a script I have made has stopped working. It generates these kinds or errors (in Swedish):

mkdir: kan inte skapa katalog "/plugins": Åtkomst nekas
/usr/share/playonlinux/lib/plugins.lib: rad 128: cd: /plugins: Filen eller katalogen finns inte
mkdir: kan inte skapa katalog "/configurations": Åtkomst nekas
/usr/share/playonlinux/lib/setupwindow.lib: rad 41: /configurations/guis/20854: Filen eller katalogen finns inte
/usr/share/playonlinux/lib/setupwindow.lib: rad 42: /configurations/guis/index_: Filen eller katalogen finns inte

These are errors due to that the REPERTOIRE variable is not set. When I downgrade to the old version for Ubuntu Natty, 3.8.8, then the script works again. Has there been a change in the handling of the REPERTOIRE variable in 4.x versions? Currently my script does at the very beginning:

# This variable must be initialized before PlayOnLinux
myscript=`realpath "$0"`

[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"

export PREFIX="${REPERTOIRE}/wineprefix"

What do I need to do to fix this?

BR
Gunnar
Quentin PÂRIS Sunday 21 August 2011 at 0:10
Quentin PÂRISAnonymous

PlayOnLinux Console : echo $REPERTOIRE

It works for me
Gustra Sunday 21 August 2011 at 11:25
GustraAnonymous

Ok, now I realize. I am executing my script from the command line. And I guess in 3.x, the REPERTOIRE variable is setup in the initial source ($PLAYONLINUX/lib/sources), while in 4.0.6 it's already assumed to be in the environment? Could that be it? If not, where is the REPERTOIRE variable set?
Quentin PÂRIS Sunday 21 August 2011 at 11:28
Quentin PÂRISAnonymous

In PlayOnLinux 4.0, all environement vars are set by python. Consequently, you can't run a script from outside

You must use playonlinux-bash tool, or run your script from PlayOnLinux console
Gustra Sunday 21 August 2011 at 23:19
GustraAnonymous

Thanks.

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 dmca-notice@playonlinux.com