katawful / wrye-install

DEPRECATED
GNU General Public License v2.0
3 stars 1 forks source link

.desktop file not escaping spaces #7

Open tooeffayy opened 3 years ago

tooeffayy commented 3 years ago

So this is weird because the script is correct but the spaces with the path aren't properly escaped by default when I run the installer. This is what was put in the .desktop file Exec=WINEPREFIX="$wineprefix" WINEDEBUG=-all wine start C:/Python27/python.exe C:/wrye-bash/Mopy/Wrye\Bash\Launcher.pyw

Instead of Exec=WINEPREFIX="$wineprefix" WINEDEBUG=-all wine start C:/Python27/python.exe C:/wrye-bash/Mopy/Wrye\ Bash\ Launcher.pyw

System is Arch, KDE, and zsh. I entered a regular sh environment to try running the cat command to fill the .desktop file but the spaces still got stripped.

tooeffayy commented 3 years ago

Interstingly the file does in fact have the spaces escaped correctly but KDE doesn't read them correctly. It ends up wanting double back slashes to work so WINEDEBUG=-all wine start C:/Python27/python.exe C:/wrye-bash/Mopy/Wrye\\ Bash\\ Launcher.pyw