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?
signature.asc
Description: OpenPGP digital signature