evince fails to overwrite files in /mnt/some_path

Bug #2072475 reported by Jora Sucharik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
evince (Ubuntu)
New
Undecided
Unassigned

Bug Description

Consider you want to annotate some PDF files on a file system mounted somewhere in /mnt. So you would open the file, do your annotations and save the file. Nope, you can't overwrite the file, you must save your PDF as a new one.

Evince (46.0-1build-1) let your know why:

The file could not be saved as "file://img/path...".
Error renaming temporary file: Permission denied

= Steps to reproduce on fresh Ubuntu 24.04: ================

* Create some fs, mount it, download some PDF. Can be skiped:

 $ truncate --size=100M myfs.img
 $ sudo mkfs.ext4 myfs.img
 $ sudo mkdir /mnt/some_dir
 $ sudo mount -o loop myfs.img
 $ cd /mnt/some_dir
 $ sudo chown $USER:$USER .
 $ wget https://upload.wikimedia.org/wikipedia/commons/d/d3/Test.pdf
 $ evince Test.pdf

* Try to save the file now, press ctrl+s, file chooser dialog opens and you get lot of warnings in terminal:

(evince:62394): GVFS-WARNING **: 10:20:45.777: 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.

(evince:62394): GVFS-WARNING **: 10:20:45.778: 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.

(evince:62394): GVFS-WARNING **: 10:20:45.851: The peer-to-peer connection failed: Could not connect: Permission denied. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.

(evince:62394): GVFS-WARNING **: 10:20:45.921: The peer-to-peer connection failed: Could not connect: Permission denied. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.

(evince:62394): GVFS-WARNING **: 10:20:46.117: 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.

(evince:62394): GVFS-WARNING **: 10:20:46.117: 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.

(evince:62394): GVFS-WARNING **: 10:20:46.118: 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.

* then your choose the same Test.pdf you want to overwrite and you get the evince renaming-temporary-file error.

Revision history for this message
Jora Sucharik (c3374610) wrote :
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.