When you install a Windows application via Wine, a .desktop file is created:
[Desktop Entry]
Name=Notepad++
Exec=env WINEPREFIX="/home/sadko/.wine" wine C:\\\\ProgramData\\\\Microsoft\\\\Windows\\\\Start\\ Menu\\\\Programs\\\\app.lnk
Type=Application
StartupNotify=true
Path=/home/sadko/.wine/dosdevices/c:/Program Files/app
Icon=7ABC_notepad++.0
StartupWMClass=app.exe
Is it possible to configure Wine so that the path is enclosed in double quotes during application installation?
Like this - "C:\\\\ProgramData\\\\Microsoft\\\\Windows\\\\Start\\ Menu\\\\Programs\\\\app.lnk"
Windows application shortcut parameters
Re: Windows application shortcut parameters
Not a full solution, only a general direction:
The part responsible for creating desktop shortcuts is winemenubuilder and it takes a path as its param. On Linux you could rename the executable to sth like `winemenubuilder-real.exe` and create a shell wrapper called `winemenubuilder.exe` that would call the real program with the argument modified accordingly (assuming that winemenubuilder will not strip the quotes), but I have no idea how to do similar thing on Windows/Wine.
Alternatively, you could modify the source at line 1294 to enclose the argument in double quotes, build your own `winemenubuilder.exe` binary and replace the original with it.
The part responsible for creating desktop shortcuts is winemenubuilder and it takes a path as its param. On Linux you could rename the executable to sth like `winemenubuilder-real.exe` and create a shell wrapper called `winemenubuilder.exe` that would call the real program with the argument modified accordingly (assuming that winemenubuilder will not strip the quotes), but I have no idea how to do similar thing on Windows/Wine.
Alternatively, you could modify the source at line 1294 to enclose the argument in double quotes, build your own `winemenubuilder.exe` binary and replace the original with it.
Re: Windows application shortcut parameters
Oh, thanks! I’ve also come up with similar options you described so far. I was hoping there might be an easier way)