Bug 6320 - .exe's not handled correctly
Summary: .exe's not handled correctly
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-20 06:33 UTC by Sander Brabander
Modified: 2008-06-11 11:06 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
one of the .exe's I get the error with (340.00 KB, application/octet-stream)
2006-03-20 09:31 UTC, Sander Brabander
Details
custom desktop file (372 bytes, application/x-desktop)
2007-08-25 08:00 UTC, Sven Arvidsson
Details

Description Sander Brabander 2006-03-20 06:33:40 UTC
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.
Comment 1 Christian - Manny Calavera - Neumair 2006-03-20 08:09:52 UTC
Thanks for your bug report! What GnomeVFS/Nautilus version are you using?
Comment 2 Christian - Manny Calavera - Neumair 2006-03-20 08:12:29 UTC
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.
Comment 3 Sander Brabander 2006-03-20 09:30:46 UTC
I'm running Ubuntu Dapper with Nautilus 2.14 and GnomeVFS 2.14.
Comment 4 Sander Brabander 2006-03-20 09:31:39 UTC
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.
Comment 5 Sander Brabander 2006-03-20 09:35:05 UTC
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.

Comment 6 Christian - Manny Calavera - Neumair 2006-03-22 09:37:43 UTC
Hrm, weird, I'm not having any problems with this file. Are you sure that you
are using the newest share-mime-info release?
Comment 7 Sander Brabander 2006-03-23 04:29:12 UTC
According to Synaptic I have version 0.17-0ubuntu3 of shared-mime-info. That's
the latest version Ubuntu has.
Comment 8 Sven Arvidsson 2007-08-25 08:00:11 UTC
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.
Comment 9 Sven Arvidsson 2007-08-25 08:00:55 UTC
Created attachment 11267 [details]
custom desktop file
Comment 10 Pino Toscano 2008-02-19 03:13:33 UTC
Maybe duplicate (or same resolution) as bug #5974 ?
Comment 11 David Faure 2008-03-27 04:14:52 UTC
Well I found out that *.exe is associated with two mimetypes (see bug 12569), surely this makes the results unpredictable...
Comment 12 Bastien Nocera 2008-04-09 08:49:07 UTC
Please test with the current shared-mime-info CVS HEAD.
Comment 13 Bastien Nocera 2008-06-11 11:06:55 UTC
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.