I have a few .exe's that I usually start with Wine just by double clicking on the icon, but now I noticed that that doesn't work as it did anymore. Now I get this error: http://sanderfox.nl/ss.jpg Obviously, .exe isn't seen as a DOS/Windows executable. If I change .exe to .com it works, but I don't think this should be happening. Also because .com isn't really used anymore as a Windows executable type these days.
Thanks for your bug report! What GnomeVFS/Nautilus version are you using?
Oh, and maybe you could attach a malicious .exe file, or (if it involves copyright infridgement) you could send me one of them, sot hat I can try out whether it works correctly with a recent GnomeVFS/Nautilus version? I suppose you're using a too old GnomeVFS version, which doesn't have a recent xdgmime import, which in turn doesn't handle multiple conflicting suffix matches, combined with an unique contents match correctly.
I'm running Ubuntu Dapper with Nautilus 2.14 and GnomeVFS 2.14.
Created attachment 4991 [details] one of the .exe's I get the error with I don't think this will have any copyright problems, so here is one of the exe's that gives me the problem.
Before I forget: even if the .exe doesn't give the error on your computer, it's possible the program doesn't run. It needs a .dll to run. But as long as you don't get the error, you can be sure it works I think.
Hrm, weird, I'm not having any problems with this file. Are you sure that you are using the newest share-mime-info release?
According to Synaptic I have version 0.17-0ubuntu3 of shared-mime-info. That's the latest version Ubuntu has.
The same problem was reported by a Debian user in http://bugs.debian.org/424923 This turned out to be a problem with a -usercustom.desktop file, which didn't show up in nautilus "Open With" menu. Steps to reproduce: 1. Add the attached file to ~/.local/share/applications/ 2. Edit defaults.list to use it; application/x-executable=abiword-usercustom.desktop 3. Try to launch an .exe file through Nautilus, you get an error instead. 4. Check the "Open With" menu in Nautilus, only the default entry "WINE" is visible and selected. 5. gnomevfs-info does however show abiword-usercustom.desktop as the default app. I'm guessing there's some sort of clash between mimetypes as I can't reproduce this by setting abiword as the default app through Nautilus. It correctly sets the mimtype as application/x-ms-dos-executable instead of application/x-executable.
Created attachment 11267 [details] custom desktop file
Maybe duplicate (or same resolution) as bug #5974 ?
Well I found out that *.exe is associated with two mimetypes (see bug 12569), surely this makes the results unpredictable...
Please test with the current shared-mime-info CVS HEAD.
Should be fixed in the current CVS, closing.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.