[PATCH 1 of 2 try 3] start.exe: add /Unix switch for native file managers

Vincent Povirk madewokherd+d41d at gmail.com
Sat Apr 12 19:43:36 CDT 2008


This patch adds a switch, /Unix, to start.exe that translates a unix
path to a dos path and attempts to start the file the way windows
explorer would. The idea is that wine.desktop can be modified to use
start.exe with this switch instead of wine, solving the following
problems:
* File managers typically do not set the working directory to the
directory that contains an exe when they start it. Setting the working
directory is the default behavior for windows explorer, and many
windows programs rely on it.
* File managers naturally use the unix path to start files, and the
wine binary passes the unix path along to the exe it starts, rather
than translating it to a windows path (this can and probably should
also be fixed somewhere else).
* Windows explorer always starts exe files with quotes around the path
in the command-line, even if the path does not contain spaces. The
wine binary does not (and probably should not) add quotes in this
situation. A few apps rely on the quotes. See
http://bugs.winehq.org/show_bug.cgi?id=5224#c14

Updated to expect /Unix and not just /U, not import shlwapi, and not
use MAX_PATH for a unix path.

-- 
Vincent Povirk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-start.exe-add-Unix-switch-for-native-file-managers.patch
Type: text/x-patch
Size: 6334 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080412/cea42150/attachment.bin 


More information about the wine-patches mailing list