#757098 /usr/bin/exo-open: exo-open overrides local mimeapps.list with system wide settings

Package:
exo-utils
Source:
exo
Description:
Utility files for libexo
Submitter:
Isaac Sijaranamual
Date:
2014-08-05 12:21:16 UTC
Severity:
important
#757098#5
Date:
2014-08-05 09:51:09 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?
Open any downloaded pdf in chrome, epdfview pops up (same result from thunar.)

Removing the package and retrying resulted in gimp opening the pdf, while evince is installed.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
Ineffective: reading the intarwebs with stale information, reading man pages with no information.
Effective: strace'ing xdg-open and exo-open

   * What was the outcome of this action?
xdg-open /path/to/downloaded.pdf does open the pdf with evince, exo-open insists on using gimp. strace shows that both xdg-open and exo-open read (or stat actually) the files /home/isaac/.local/share/applications/mimeapps.list and /usr/share/applications/mimeinfo.cache (plus a bunch of other likeli culprits, both those don't exist on my machine.)

$ grep -H application/pdf ~/.local/share/applications/mimeapps.list /usr/share/applications/mimeinfo.cache
/home/isaac/.local/share/applications/mimeapps.list:application/pdf=evince.desktop;epdfview.desktop
/usr/share/applications/mimeinfo.cache:application/pdf=gimp.desktop;evince-previewer.desktop;evince.desktop;

   * What outcome did you expect instead?
I expected the pdf to be opened with evince.

#757098#10
Date:
2014-08-05 12:19:21 UTC
From:
To:
Then select it as default application for PDF. You can do that in Thunar
for example, with a right click and then properties.

Basically, Xfce doesn't ship a default preferences file, and gimp has
somehow a preference over evince/epdfview for no good reason.

Regards,