! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
exo puts broken mimetypes into mimeapps.list
Status:
RESOLVED: FIXED

Comments

Description Luke Hutchison 2019-01-25 04:17:35 CET
Around Fedora 27, Nautilus stopped being able to open files with double click. It took me a very long time to figure out what was going on, but it turns out it was this bug:

[Fedora bug]: https://bugzilla.redhat.com/show_bug.cgi?id=674321
[Ubuntu bug]: https://bugs.launchpad.net/ubuntu/+source/exo/+bug/956255

I had to remove the following entries from ~/.local/share/applications/mimeapps.list , in the "[Added Associations]" section:

x-scheme-handler/http=exo-web-browser.desktop
x-scheme-handler/https=exo-web-browser.desktop
x-scheme-handler/file=exo-file-manager.desktop
x-scheme-handler/trash=exo-file-manager.desktop
x-scheme-handler/mailto=exo-mail-reader.desktop;

According to the Ubuntu bug, the core problem was fixed in this commit:

https://git.xfce.org/xfce/exo/commit/?id=b74caf97642ae2bf00a7754a5fb193f695b6f3d4

However, one commenter on the Fedora bug pointed out that "exo-0.6.2-3.fc16 is still taking the mime types from the X-XFCE-MimeType key and adding them to the [Added Associations] section of ~/.local/share/applications/mimeapps.list". This was still happening on a later version of exo (I don't know which version exactly, but maybe 0.10.x, since Nautilus broke for me around Fedora 27).

There are a few things that need to be fixed:

(1) exo needs to stop inserting these entries in mimeapps.list , if it is still inserting them

(2) exo needs to remove these entries from mimeapps.list, if they are found there, so that upgrading exo is enough to fix a broken system.

(3) One commenter on the Fedora bug pointed out that "I only noticed because some part of KDE was complaining about some lists in mimeapps.list not ending with ';' " -- exo needs to add a trailing ';' if it does need to add (corrected) lines to mimeapps.list.
Comment 1 Sean Davis editbugs 2019-06-14 02:48:11 CEST
Resolved with the following commits:

https://git.xfce.org/xfce/exo/commit/?id=404a7ef73246b73cb4cd2a4ab8cc10e1a02d6b74
Always terminates the mimetype associations with ";"

https://git.xfce.org/xfce/exo/commit/?id=48e12f1d5f31e576f7017c50785032ef6d22cfd1
Removes bad entries that should no longer be used.

https://git.xfce.org/xfce/exo/commit/?id=8bc59ad1c48df132e917337bd08211be58af5bb1
Possibly related, this synchronizes the preferences with gio-mime.

Will be available with Exo 0.12.6, release shortly.

Bug #15087

Reported by:
Luke Hutchison
Reported on: 2019-01-25
Last modified on: 2019-06-14

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information