Bug 702807 - .exe files are opened with file-roller by default
Summary: .exe files are opened with file-roller by default
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: file-roller
Version: 17
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-07 10:35 UTC by Milan Bouchet-Valat
Modified: 2013-11-09 21:48 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-08-01 17:46:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Milan Bouchet-Valat 2011-05-07 10:35:58 UTC
When you double click on a .exe file in Nautilus, the file is opened with file-roller, which leads to an error. You have to right-click on choose Open with Wine, or make it the default application to open .exe files.

This also happens with new users, so that doesn't come from a buggy migrated account.

The reason is that gnome-file-roller.desktop registers the application/x-ms-dos-executable MIME type, and for some reason with a higher priority than Wine. I don't really know why file-roller says it supports .exe, since it doesn't seem to be able to open them... So maybe that's a file-roller bug, but I guess you know better than I do.

This is on Fedora 15, wine 1.3.19.

Comment 1 gatlibs 2011-06-12 23:18:52 UTC
It would be nice to have Wine as the default application for all .exe files. file-roller does this because it can extract the compressed files. I wonder if this is something that just needs a setting changed in either one of the two applications packaging in Fedora (also if other distributions are having this problem)?

This is current after an upgrades-testing wine-1.3.21.

Comment 2 Milan Bouchet-Valat 2011-06-13 08:37:53 UTC
I don't think the real bug is in file-roller. Wine should just have a higher priority than file-roller, that's all. (This works in Ubuntu, BTW.)

Comment 3 gatlibs 2011-06-15 01:29:37 UTC
I found this https://lists.launchpad.net/ubuntu-wine/msg00002.html 
"Integration into GNOME

- Clicking .exe : Isn't this doable via adding a single mimetype in GNOME ? What happens in GNOME if you open a .7z file without p7zip installed, for instance ? (i'm asking because i don't run GNOME :p). At least we must remove the mimetype that associates Win32 binaries to file-roller."

According to http://developer.gnome.org/shared-mime-info-spec/ 
"The MIME database does NOT store user preferences (such as a user's preferred application for handling files of a particular type). It may be used to store static information, such as that files of a certain type may be viewed with a particular application."

Maybe Wine's package should remove file-roller's mime attribute to .exe?

According to this http://linux.about.com/library/cmd/blcmdl5_gnome-vfs-mime.htm 
possibly changing which of the .keys is used may solve the issue.

Comment 4 Milan Bouchet-Valat 2011-06-15 08:00:08 UTC
(In reply to comment #3)
> According to http://developer.gnome.org/shared-mime-info-spec/ 
> "The MIME database does NOT store user preferences (such as a user's preferred
> application for handling files of a particular type). It may be used to store
> static information, such as that files of a certain type may be viewed with a
> particular application."
> 
> Maybe Wine's package should remove file-roller's mime attribute to .exe?
The excerpt you quote doesn't mean what you seems to think it does. The shared MIME info spec only defines how to register and detect MIME types. It doesn't handle associations between applications and MIME types at all. This is handled by another spec (see below).

> According to this http://linux.about.com/library/cmd/blcmdl5_gnome-vfs-mime.htm 
> possibly changing which of the .keys is used may solve the issue.
GNOME-VFS has died many year ago... ;-)


I can see three solutions:
1) Fix the line
application/x-ms-dos-executable=gnome-file-roller.desktop;
in /usr/share/applications/defaults.list to use Wine. The problem is that the file is installed by default, so it means people without Wine would lose the file-roller association without reason (not a big deal though).
2) Change that line when installing Wine. That shouldn't raise issues, but I'm not sure that's in the Fedora policy of packages install.
3) Install/edit the file /usr/share/applications/mimeapps.list. This file is defined by the MIME actions spec[1] as one way of changing MIME associations when installing an app:
> However, note that the next section provides another solution for ISV
> applications which want to ensure they become the default application after 
> being installed: they can edit [or create] the global mimeapps.list file in 
> /usr/share/applications. This is also a solution for system administrators 
> who wish to set up a default application ordering for their users. 


So far, I've not been able to determine how Ubuntu is setting this association. They don't seem to do anything special, and yet (by chance ?) /usr/share/mime/mimeinfo.cache has the right order:
/mnt/usr/share/applications/mimeinfo.cache:application/x-ms-dos-executable=wine.desktop;file-roller.desktop;

Maybe the explanation is that their /usr/share/applications/defaults.list doesn't mention file-roller for application/x-ms-dos-executable, which impacts the order. That would mean removing that line would be enough. That wouldn't hurt anyway, since file-roller is already registered as being able to open .exe, and it's unlikely any other app would claim to open them.


1: http://www.freedesktop.org/wiki/Specifications/mime-actions-spec

Comment 5 Fedora End Of Life 2012-08-07 17:08:36 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Milan Bouchet-Valat 2012-08-08 18:26:08 UTC
Not fixed in F17.

Comment 7 Fedora End Of Life 2013-07-04 06:15:35 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2013-08-01 17:46:49 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 9 Tom Klingenberg 2013-09-10 16:38:14 UTC
Not fixed in 19 - Gnome now even prevents to select wine via Nautilus. It's a complete usability disaster.

Comment 10 Tom Klingenberg 2013-09-10 17:38:21 UTC
The command-line application "mimeopen -d path/to.exe" is a nice helper to get things into a more usable state again.

Comment 11 Nathanel Titane 2013-11-09 21:48:47 UTC
Still not fixed in fedora 20!!!!!


Note You need to log in before you can comment on or make changes to this bug.