[xubuntu-users] thunar opens pdf with gimp instead of evince

rodolfo gouveia rgouveia at cosmico.net
Thu Sep 4 17:01:23 UTC 2014


Hello,
When opening a PDF file with thunar, gimp opens instead of evince even 
though in the properties of that file (in thunar), Document Viewer 
(evince)  is selected as the default opener.

I've strace'ed 'Thunar' and found out that it reads 
/usr/share/applications/mimeinfo.cache which contains:
  application/pdf=gimp.desktop;evince.desktop;evince-previewer.desktop;
But if I run thunar /path/to/file.pdf on the terminal it opens evince as 
expected!
Also in the terminal I ran:
  python -c 'import gio; print 
gio.app_info_get_all_for_type("application/pdf")'
and got this:
  [<gio.unix.DesktopAppInfo at 0x7fc52e4e3eb0: GIMP Image Editor>, 
<gio.unix.DesktopAppInfo at 0x7fc52e4e3f00: Document Viewer>, 
<gio.unix.DesktopAppInfo at 0x7fc52e4e3f50: Print Preview>, 
<gio.unix.DesktopAppInfo at 0x7fc52e4e3fa0: evince>]
but running this:
  xdg-mime query default application/pdf
outputs:
  evince.desktop

I'm running the development 14.10 (daily updated) and I can reproduce 
with a newly created user.
Any ideas on why this is happening ?

cheers,
rodolfo





More information about the xubuntu-users mailing list