Code: Select all
cmd /c start /unix /usr/bin/gedit "/home/bob/.wine32/drive_c/Program Files/some path with spaces/file name with spaces .txt"
However, whatever I try, the quotes around the path are *always* stripped away.
I know my quotes path string is proper, because:
Code: Select all
cmd /k set myenvvar="/my path with spaces/"
"/my"
"path"
"with"
"spaces/"
etc.
So something is removing the quotes, and I suspect Wine's 'start' process. It doesn't do anything with escape characters, they pass through fine (backslashes end up in the erroneous paths reported by nemo). It's just double or single quotes that are stripped, and the remaining path string is split into arguments by the Linux application.
I've tried messing with cmd /S flag, but it doesn't help, because cmd already handles things properly.
I would love to have some ideas on how to solve this problem. Currently, the only way I can think of is to write a Linux native application, reading the path from a temporary file and running the requested Linux native command. But this would be basically re-implementing 'start', while using 'start' to run it!