Bug 1329804

Summary: enligtenment_open won't open PDF files
Product: [Fedora] Fedora Reporter: Skippy <lecotegougdelaforce>
Component: evinceAssignee: Caolan McNamara <caolanm>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: dchen, feborges, i, lecotegougdelaforce, mhatina, mkasik, rdieter, tcallawa
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: evince-3.20.1-2.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-18 15:53:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Skippy 2016-04-23 11:15:57 UTC
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]

Comment 1 Rex Dieter 2016-04-23 13:53:26 UTC
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`

Comment 2 Skippy 2016-04-23 13:59:25 UTC
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:'").

Comment 3 Rex Dieter 2016-04-23 14:06:46 UTC
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).

Comment 4 Skippy 2016-04-23 14:12:18 UTC
(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 !

Comment 5 Rex Dieter 2016-04-23 14:30:29 UTC
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

Comment 6 Tom "spot" Callaway 2016-04-26 19:52:26 UTC
Opened a ticket with upstream Enlightenment: https://phab.enlightenment.org/T3555

Comment 7 Tom "spot" Callaway 2016-05-16 19:24:41 UTC
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

Comment 8 Rex Dieter 2016-05-16 19:44:27 UTC
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>

Comment 9 Skippy 2016-05-17 09:04:30 UTC
(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.

Comment 10 Fedora Admin XMLRPC Client 2016-10-14 08:08:33 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 11 Caolan McNamara 2016-10-14 09:13:52 UTC
upstream evince merged a fix for this which is by now in f25, I'll backport that to f24

Comment 12 Fedora Update System 2016-10-14 21:23:37 UTC
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

Comment 13 Fedora Update System 2016-10-18 15:53:15 UTC
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.