evince fails to overwrite files in /mnt/some_path
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:/
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:/
$ 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=
(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=
(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=
(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=
(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=
(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=
(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=
* then your choose the same Test.pdf you want to overwrite and you get the evince renaming-