Wine desktop integration: double-clicking files in file managers

Vincent Povirk madewokherd+d41d at gmail.com
Fri Dec 21 01:03:19 CST 2007


I have attached a patch that adds a wrapper script to Wine for
starting files from Linux file managers such as nautilus and modifies
wine.desktop to use the script for exe, msi, lnk, chm, and hlp files.

The wrapper sets the working directory to the directory containing the
file and starts it using wine start with the full windows path. If
wine start fails, it displays an error dialog. As I understand it,
this is very close to the behavior when double-clicking a file in
windows explorer.

Please comment.


These issues worry me in particular:

I cannot double-click on exe files to open them myself because of
http://bugs.winehq.org/show_bug.cgi?id=8386 (nautilus is getting
confused about file types). As I understand it, this is a separate
problem (and should be fixed?), but I wonder if I can do anything
about it.

Nautilus is not using Wine to start hlp files. I put in every mime
type I could come up with for hlp, including
application/x-extension-hlp.

Wine does not show in the "Open With" list in nautilus. This makes the
wrapper a little bit harder to use for applications installed in wine
to handle specific filetypes.

Is the list of file extensions I decided to use reasonable?

Is the list of MIME types I decided to use for those extensions
reasonable? Is there some way Wine could help the system recognize
some of these types? I don't know much about this topic,
unfortunately, and I'm not very confident about my list.

I cannot test the kdialog command in the script myself because kdialog
consistently fails to display things here.

-- 
Vincent Povirk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winestartfile.patch
Type: text/x-patch
Size: 3762 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20071221/ad4937bc/attachment.bin 


More information about the wine-devel mailing list