Permission denied when trying to open a pdf file form Google Drive

Bug #1991496 reported by Nicolás Abel Carbone
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evince
New
Unknown
evince (Ubuntu)
Triaged
High
Unassigned

Bug Description

I logged into Google Drive on Gnome Online Accounts, and I can access my Google Drive files from nautilus.
However, when I try to open a pdf file from said folder, I can't open it. I get a "permission denied".

Other files open fine. Okular is also able to open the pdf file.

See attached screenshot with the error.

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: evince 43.0-1
ProcVersionSignature: Ubuntu 5.19.0-15.15-generic 5.19.0
Uname: Linux 5.19.0-15-generic x86_64
ApportVersion: 2.23.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Oct 2 17:27:12 2022
InstallationDate: Installed on 2022-02-02 (242 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
SourcePackage: evince
UpgradeStatus: Upgraded to kinetic on 2022-09-29 (3 days ago)

Revision history for this message
Nicolás Abel Carbone (nicocarbone) wrote :
Jeremy Bícha (jbicha)
Changed in evince (Ubuntu):
importance: Undecided → High
status: New → Triaged
Changed in evince:
status: Unknown → New
Revision history for this message
Daniel Andrade (andrade) wrote :

First machine:
Ubuntu 23.10
Evince 45.0-1 ($ apt show evince)

Second machine:
Ubuntu 24.04
Evince 46.0-1build1

I've also added Google Drive through Online Accounts and can't open PDFs with evince 45.0-1.

- Opening image files works by double-clicking in Nautilus.

- Opening Google Drive PDFs in Firefox works (only tried on 1st machine, though).

- Can also copy/paste files into, and out of, Google Drive using Nautilus.

Double-clicking PDF in Nautilus, Error
--------------------------------------

Unable to open document “file:///run/user/1000/gvfs/google-drive:host=tecnico.ulisboa.pt,user=daniel.andrade/0AKMJJbX-j2jTUk9PVA/0B6MJJbX-j2jTc3RhcnRlcl9maWxl”.

Permission denied

Opening via Terminal in Evince, Error
--------------------------------------

$ evince file:///run/user/1000/gvfs/google-drive:host=tecnico.ulisboa.pt,user=daniel.andrade/0AKMJJbX-j2jTUk9PVA/0B6MJJbX-j2jTc3RhcnRlcl9maWxl

(evince:26649): GVFS-WARNING **: 17:47:33.617: The peer-to-peer connection failed: Error while getting peer-to-peer dbus connection: Could not connect: Permission denied. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.

{ Error message repeats 5 times. Evince window opens with the same error as double-click in Nautilus. }

Opening via Terminal in Firefox, Works
--------------------------------------
$ firefox file:///run/user/1000/gvfs/google-drive:host=tecnico.ulisboa.pt,user=daniel.andrade/0AKMJJbX-j2jTUk9PVA/0B6MJJbX-j2jTc3RhcnRlcl9maWxl

{ PDF opens in browser successfully. I'm not logged in in my Google account in Firefox. }

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.