From 1e715272f9045fd396f8c327e31ccc5d3960d1d1 Mon Sep 17 00:00:00 2001 From: tretrauit <3550664-tretrauit@users.noreply.gitlab.com> Date: Tue, 22 Jun 2021 15:22:50 +0000 Subject: [PATCH] Fix some problem on NPX4CS_Win_Proton.sh Fixes: + wrong proton + wineprefix absolute path + still crap --- NPX4CS_Win_Proton.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/NPX4CS_Win_Proton.sh b/NPX4CS_Win_Proton.sh index d35df8e..51d8908 100644 --- a/NPX4CS_Win_Proton.sh +++ b/NPX4CS_Win_Proton.sh @@ -29,10 +29,11 @@ for idx in ${!PROTONS[@]}; do done echo "Select: " read PROTON_SEL_INT -PROTON_SEL=${{PROTONS[PROTON_SEL_INT]}%?} +PROTON_SEL_slash=${PROTONS[PROTON_SEL_INT]} +PROTON_SEL=${PROTON_SEL_slash%?} echo "Selected $PROTON_SEL, processing..." echo "Creating NotParadoxLauncher script..." -echo "WINEPREFIX='./../../compatdata/255710/pfx' $PROTON_SEL/files/bin/wine ./NotParadoxLauncher/bootstrapper-v2.exe" > launcher.sh +PREFIXPATH=$(realpath "./../../compatdata/255710/pfx") +echo "WINEPREFIX=\"$PREFIXPATH\" \"$PROTON_SEL/files/bin/wine\" ./NotParadoxLauncher/bootstrapper-v2.exe" > launcher.sh chmod +x launcher.sh echo "Done! You can launch NotParadoxLauncher by doing './launcher.sh' in Cities: Skylines dir." -EOF