Using xdg-utils 1.1.1-3.fc23 : $ xdg-open somefile.pdf Filename "file:///tmp/somefile.pdf" does not exist or is not a regular file Yet : $ xdg-mime query filetype somefile.pdf application/pdf $ xdg-mime query default application/pdf evince.desktop $ dnf list installed|grep evince evince.x86_64 3.18.2-4.fc23 @updates evince-libs.x86_64 3.18.2-4.fc23 @updates $ gvfs-open somefile.pdf [works fine]
Interesting, that's a bug I thought was fixed awhile ago, is there a chance you have some older/different xdg-open installed somewhere? $ rpm -q --whatprovides `which xdg-open`
Nope, nothing else. However I was just reading elsewhere that "xdg-utils does not work correctly with enlightenment", which I use. Indeed I seem to have similar issues with xdg-email ("no method available for opening 'mailto:'").
It should work fine in enlightenment. Mind sharing where you read that? (so that I can correct where "the internet is wrong"? :) So, what xdg-open tries on enlightenment, is first tries: enlightenment_open "file" then falls back to some generic methods. Does, enlightenment_open somefile.pdf work? As far as mailto: goes, that should work too, provided this points to something useful: xdg-mime query default "x-scheme-handler/mailto" (with a hard-coded fallback to thunderbird, if it's installed).
(In reply to Rex Dieter from comment #3) > It should work fine in enlightenment. Mind sharing where you read that? > (so that I can correct where "the internet is wrong"? :) Maybe it's outdated, then : https://en.opensuse.org/Portal:Enlightenment > So, what xdg-open tries on enlightenment, is first tries: > enlightenment_open "file" > then > falls back to some generic methods. > > Does, > enlightenment_open somefile.pdf > work? Here we are… $ enlightenment_open somefile.pdf Filename "file:///tmp/somefile.pdf" does not exist or is not a regular file > As far as mailto: goes, that should work too, provided this points to > something useful: > > xdg-mime query default "x-scheme-handler/mailto" > > (with a hard-coded fallback to thunderbird, if it's installed). $ xdg-mime query default "x-scheme-handler/mailto" evolution.desktop And evolution is not installed. I guess xdg-utils is not to be blamed here, so I'm closing. Thanks for the help anyway !
I suspect enlightenment's enlightment_open may be an old xdg-open fork (since, that error sounded very familiar, something we'd fixed in xdg-open awhile back). Triaging to enlightenment, owner of /usr/bin/enlightenment_open
Opened a ticket with upstream Enlightenment: https://phab.enlightenment.org/T3555
This bug isn't in Enlightenment, it's in evince-previewer. The full story is here: http://entrenchant.blogspot.com/2016/03/xdg-open-arcanery.html I'm moving this bug to evince, and I've opened it upstream as well: https://bugzilla.gnome.org/show_bug.cgi?id=766531
Some good detective-work in the blog, and some not so good commentary. <offtopic mode=sarcasm> "There are some very confused people working on this software." is a great way to motivate people to fix bugs for you. </offtopic>
(In reply to Rex Dieter from comment #8) > Some good detective-work in the blog, and some not so good commentary. > > <offtopic mode=sarcasm> > "There are some very confused people working on this software." is a great > way to motivate people to fix bugs for you. > </offtopic> Some people submit patches, some others prefer to boast on the web… Anyway, the post suggests some improvements in the way xdg-open handles this issue.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
upstream evince merged a fix for this which is by now in f25, I'll backport that to f24
evince-3.20.1-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d4bb9e240b
evince-3.20.1-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.