Wine, spaces, hotkeys and filepaths
by tpprynn from LinuxQuestions.org on (#59HKM)
I have used Wine for a few years but in full DEs. I am using Debian and Fluxbox now and despite some recent triumphs and lesson-learning cannot work out how to set up a hotkey to start a wine/ Windows application. The filepath involves spaces. I can double click on a link in the PCManFM file manager's Applications folder and start the program. During setup an icon was put in my /Desktop folder also that worked.
In Fluxbox's keys file I have things like
Mod4 g :ExecCommand gimp
Control Mod4 w :Exec (/opt/waterfox/waterfox)
but I would not know how the file path would be written (as with the one here for Waterfox) when there are spaces in it, with Wine using the Windows folder names that include spaces.
This is the desktop file for the application:
[Desktop Entry]
Name=KRISTAL
Exec=env WINEPREFIX="/home/me/.wine" wine-stable C:\\\\Program\\ Files\\ \\(x86\\)\\\\Kreatives.org\\\\KRISTAL\\ Audio\\ Engine\\\\KRISTAL.exe
Type=Application
StartupNotify=true
Path=/home/me/.wine/dosdevices/c:/Program Files (x86)/Kreatives.org/KRISTAL Audio Engine/Help
Icon=80BF_KRISTAL.0
StartupWMClass=kristal.exe
I did have a stab at using the bit that follows Exec and the bit following Path, setting the hotkey Mod4 w to that, but neither works. So if it can be done, what is the form please?


In Fluxbox's keys file I have things like
Mod4 g :ExecCommand gimp
Control Mod4 w :Exec (/opt/waterfox/waterfox)
but I would not know how the file path would be written (as with the one here for Waterfox) when there are spaces in it, with Wine using the Windows folder names that include spaces.
This is the desktop file for the application:
[Desktop Entry]
Name=KRISTAL
Exec=env WINEPREFIX="/home/me/.wine" wine-stable C:\\\\Program\\ Files\\ \\(x86\\)\\\\Kreatives.org\\\\KRISTAL\\ Audio\\ Engine\\\\KRISTAL.exe
Type=Application
StartupNotify=true
Path=/home/me/.wine/dosdevices/c:/Program Files (x86)/Kreatives.org/KRISTAL Audio Engine/Help
Icon=80BF_KRISTAL.0
StartupWMClass=kristal.exe
I did have a stab at using the bit that follows Exec and the bit following Path, setting the hotkey Mod4 w to that, but neither works. So if it can be done, what is the form please?