Bug#681451: gvfs-bin: gvfs-open (via xdg-open) opens pdfs in wrong application

Michael Biebl biebl at debian.org
Sun Jul 15 19:36:04 UTC 2012


On 15.07.2012 20:21, Norbert Preining wrote:

> On Fr, 13 Jul 2012, Per Olofsson wrote:
>> OK. xdg-open merely calls gvfs-open on the file. Reassigning.
> 
> I tried now to find out *why* gvfs-open opens everything in the
> desktop browser ...
> 
> I straced a gvfs-call and the following files (that exist) containing
> "mime" or "default" are opened:
>   /usr/share//mime/mime.cache
>   /home/norbert/.local/share/applications/mimeapps.list
>   /usr/share/gnome/applications/mimeinfo.cache
>   /usr/share/gnome/applications/defaults.list
>   /usr/local/share/applications/mimeinfo.cache
>   /usr/local/share/applications/defaults.list
>   /usr/share/applications/mimeinfo.cache
> all of these when searched for application/pdf give evince.desktop
> or a more complete list of pdf viewers. Onl the mime.cache I couldn't
> check since it is a binary file.

Please tar those files and attach them to the bug report (including
their full path)

> I don't see why gvfs decides to open that in a file manager. No warning
> message, no error message, nothing points to a file manager.
> As already mentioned in the bug report, all the xdgg-mime point to
> evince.
> 
> Inspired by another bug report I was reading I trid that:
> $ python -c 'import gio; f = gio.File("file:/home/norbert/foo.pdf");print f.query_default_handler();'
> 
> and ....: <gio.unix.DesktopAppInfo at 0x7f73a8e73910: File Manager>

Works fine here.
python -c 'import gio; f = gio.File("/home/michael/docs/APG.pdf");print
f.query_default_handler();'
<gio.unix.DesktopAppInfo at 0x131b7d0: Document Viewer>

Your problem is not reproducible and looks like a local
(mis)configuration problem.

Have you tried with a fresh user account?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20120715/850253c5/attachment.pgp>


More information about the pkg-gnome-maintainers mailing list