After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 439234 - Opening a remote pdf doc listed in the 'recent documents' doesn't work
Opening a remote pdf doc listed in the 'recent documents' doesn't work
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 523827 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-05-17 17:38 UTC by Sebastien Bacher
Modified: 2009-08-04 15:21 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Sebastien Bacher 2007-05-17 17:38:52 UTC
The bug has been opened on https://bugs.launchpad.net/bugs/71034

"Steps to reproduce the bug:
Open a pdf file located in a smb share with evince.
Close evince.
Open the same file through the 'Recent documents' in gnome-panel menu.
An message windows should pop up with this error:
'Could not find a suitable application.'
This doesn't happen with other type of documents, i.e. jpeg files, openoffice files (and MS Office files).
..."
Comment 1 Vincent Untz 2007-05-17 17:57:35 UTC
Does it work with gnome-open?
Comment 2 Sebastien Bacher 2007-05-17 20:04:32 UTC
gnome-open doesn't ask for an username or password, it works with it if those are specified to the URI though
Comment 3 Vincent Untz 2007-05-21 19:30:45 UTC
And does it work from the run dialog? :-)

I don't have a smb server here, so I'll probably need someone to look at this.
Comment 4 Sebastien Bacher 2007-05-21 20:50:33 UTC
you can try with ssh, works correctly from the run dialog
Comment 5 Pascal Kreyer 2008-03-22 14:15:12 UTC
*** Bug 523827 has been marked as a duplicate of this bug. ***
Comment 6 Pascal Kreyer 2008-03-22 14:16:27 UTC
Same issue with ftp and webdav protocols.
Comment 7 Pascal Kreyer 2008-03-22 14:23:39 UTC
if we change the "mime:mime-type" entry from "application/octet-stream" to "application/pdf" we can open correctly any pdfs.

Comment 8 Sebastien Bacher 2008-03-22 14:32:00 UTC
that's an evince issue, the .recently-used.xbel get a application/octet-stream mimetype which is incorrect
Comment 9 Pascal Kreyer 2008-03-22 14:37:46 UTC
Here is a output example of gnomevfs-info :

# gnomevfs-info ftp://localhost/test.pdf 
You must log in to access localhost
Login anonymously?
 1	Yes
 2	No
2
Username: pk
Password: 
Name              : test.pdf
Type              : Regular
MIME type         : application/pdf
Default app       : evince.desktop
Size              : 3169084
Blocks            : 6190
I/O block size    : 32768
Local             : NO
SUID              : NO
SGID              : NO
Sticky            : NO
Link count        : 1
UID               : 1001
GID               : 1001
Access time       : Fri May 25 00:00:00 2007
Modification time : Fri May 25 00:00:00 2007
Change time       : Fri May 25 00:00:00 2007
# 

But when we look the entry in "Recent Documents" (.recently-used.xbel), we have this :

  <bookmark href="ftp://localhost/test.pdf" added="2008-03-22T14:29:27Z" modif
ied="2008-03-22T14:29:36Z" visited="2008-03-22T14:29:27Z">
    <info>
      <metadata owner="http://freedesktop.org">
	<mime:mime-type type="application/octet-stream"/>
	<bookmark:applications>
	  <bookmark:application name="File Manager" exec="&apos;evince %U&apos;"
 timestamp="1206196167" count="1"/>
	  <bookmark:application name="Evince Document Viewer" exec="&apos;evince
 %u&apos;" timestamp="1206196176" count="1"/>
	</bookmark:applications>
	</metadata>
    </info>
  </bookmark>

We can see that the mime-type is not the same.
Comment 10 Pascal Kreyer 2008-12-20 14:07:57 UTC
Work now but only in one condition. The connection to the source server must be open first.
Comment 11 Pascal Kreyer 2008-12-20 14:09:40 UTC
Work with Evince 2.22.2 and Nautilus 2.24.2