[GH-ISSUE #5392] evince: changes to settings are not persisted (gvfs) #2980

Closed
opened 2026-05-05 09:38:17 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @cvlc12 on GitHub (Oct 2, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5392

Hi,

When using Evince with firejail, I cannot store viewing settings, and Evince always starts in a very small window with zoom level set at 15,7%. Even if I check "remember present settings" in Evince, the window size and zoom level are reset every time.

This is very inconvenient, what can I do to change this behavior ?

Arch linux 5.19.12-arch1-1
firejail version 0.9.70

firejail --noprofile evince pdf works as expected

Thanks very much

Originally created by @cvlc12 on GitHub (Oct 2, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5392 Hi, When using Evince with firejail, I cannot store viewing settings, and Evince always starts in a very small window with zoom level set at 15,7%. Even if I check "remember present settings" in Evince, the window size and zoom level are reset every time. This is very inconvenient, what can I do to change this behavior ? ``` Arch linux 5.19.12-arch1-1 firejail version 0.9.70 ``` `firejail --noprofile evince pdf` works as expected Thanks very much
Author
Owner

@rusty-snake commented on GitHub (Oct 3, 2022):

First start with providing essential information. The easiest way is to follow the bug template.

<!-- gh-comment-id:1265015928 --> @rusty-snake commented on GitHub (Oct 3, 2022): First start with providing essential information. The easiest way is to follow the bug template.
Author
Owner

@rusty-snake commented on GitHub (Oct 3, 2022):

Likely you need to add dbus-user.talk ca.desrt.dconf. IIRC we decided against st it because it allows escapes and is only used to remember view settings, but maybe this was also in nodbus days.

<!-- gh-comment-id:1265019202 --> @rusty-snake commented on GitHub (Oct 3, 2022): Likely you need to add `dbus-user.talk ca.desrt.dconf`. IIRC we decided against st it because it allows escapes and is only used to remember view settings, but maybe this was also in `nodbus` days.
Author
Owner

@cvlc12 commented on GitHub (Oct 3, 2022):

Thanks, i added info to the first post, sorry for that.

It's better with dbus-user.talk ca.desrt.dconf, zoom level is somewhat preserved, but Evince is still started in a small window. Launching with --noprofile launches full screen

<!-- gh-comment-id:1265225925 --> @cvlc12 commented on GitHub (Oct 3, 2022): Thanks, i added info to the first post, sorry for that. It's better with `dbus-user.talk ca.desrt.dconf`, zoom level is somewhat preserved, but Evince is still started in a small window. Launching with `--noprofile` launches full screen
Author
Owner

@rusty-snake commented on GitHub (Oct 3, 2022):

To narrow it down, does firejail --ignore=dbus-user /usr/bin/evince path/to/document work as expected?

What does gsettings list-recursively org.gnome.Evince list?

full screen

Do you mean full screen or maximized window?

<!-- gh-comment-id:1265242685 --> @rusty-snake commented on GitHub (Oct 3, 2022): To narrow it down, does `firejail --ignore=dbus-user /usr/bin/evince path/to/document` work as expected? What does `gsettings list-recursively org.gnome.Evince` list? > full screen Do you mean full screen or maximized window?
Author
Owner

@cvlc12 commented on GitHub (Oct 3, 2022):

$  gsettings list-recursively org.gnome.Evince
org.gnome.Evince allow-links-change-zoom true
org.gnome.Evince auto-reload true
org.gnome.Evince document-directory @ms nothing
org.gnome.Evince override-restrictions true
org.gnome.Evince page-cache-size uint32 50
org.gnome.Evince pictures-directory @ms nothing
org.gnome.Evince show-caret-navigation-message true
org.gnome.Evince.Default continuous true
org.gnome.Evince.Default dual-page false
org.gnome.Evince.Default dual-page-odd-left false
org.gnome.Evince.Default enable-spellchecking true
org.gnome.Evince.Default fullscreen false
org.gnome.Evince.Default inverted-colors false
org.gnome.Evince.Default show-sidebar false
org.gnome.Evince.Default show-toolbar true
org.gnome.Evince.Default sidebar-page 'thumbnails'
org.gnome.Evince.Default sidebar-size 132
org.gnome.Evince.Default sizing-mode 'free'
org.gnome.Evince.Default window-ratio (1.4536779601576097, 0.94774660350505069)
org.gnome.Evince.Default zoom 1.1798094559347589

$ firejail --ignore=dbus-user /usr/bin/evince path/to/document starts minimized as well (yes I meant maximized, not full-screen)

<!-- gh-comment-id:1265258189 --> @cvlc12 commented on GitHub (Oct 3, 2022): ``` $ gsettings list-recursively org.gnome.Evince org.gnome.Evince allow-links-change-zoom true org.gnome.Evince auto-reload true org.gnome.Evince document-directory @ms nothing org.gnome.Evince override-restrictions true org.gnome.Evince page-cache-size uint32 50 org.gnome.Evince pictures-directory @ms nothing org.gnome.Evince show-caret-navigation-message true org.gnome.Evince.Default continuous true org.gnome.Evince.Default dual-page false org.gnome.Evince.Default dual-page-odd-left false org.gnome.Evince.Default enable-spellchecking true org.gnome.Evince.Default fullscreen false org.gnome.Evince.Default inverted-colors false org.gnome.Evince.Default show-sidebar false org.gnome.Evince.Default show-toolbar true org.gnome.Evince.Default sidebar-page 'thumbnails' org.gnome.Evince.Default sidebar-size 132 org.gnome.Evince.Default sizing-mode 'free' org.gnome.Evince.Default window-ratio (1.4536779601576097, 0.94774660350505069) org.gnome.Evince.Default zoom 1.1798094559347589 ``` `$ firejail --ignore=dbus-user /usr/bin/evince path/to/document` starts minimized as well (yes I meant maximized, not full-screen)
Author
Owner

@rusty-snake commented on GitHub (Oct 3, 2022):

Looks like you have to comment evince.profile line by line to find the problematic one.

<!-- gh-comment-id:1265808977 --> @rusty-snake commented on GitHub (Oct 3, 2022): Looks like you have to comment evince.profile line by line to find the problematic one.
Author
Owner

@cvlc12 commented on GitHub (Oct 4, 2022):

Alright, I managed to get it working by uncommenting the following lines :

noblacklist ${HOME}/.local/share/gvfs-metadata
dbus-user.talk org.gtk.vfs.Daemon
<!-- gh-comment-id:1266858805 --> @cvlc12 commented on GitHub (Oct 4, 2022): Alright, I managed to get it working by uncommenting the following lines : ``` noblacklist ${HOME}/.local/share/gvfs-metadata dbus-user.talk org.gtk.vfs.Daemon ```
Author
Owner

@cvlc12 commented on GitHub (Oct 4, 2022):

and the additional dbus-user.talk org.gtk.vfs.Metadata actually so that the page can be opened maximized.

This settings seems to be set per pdf though and not globally, but that's probably not related to firejail

<!-- gh-comment-id:1266862014 --> @cvlc12 commented on GitHub (Oct 4, 2022): and the additional `dbus-user.talk org.gtk.vfs.Metadata` actually so that the page can be opened maximized. This settings seems to be set per pdf though and not globally, but that's probably not related to firejail
Author
Owner

@cvlc12 commented on GitHub (Oct 4, 2022):

So, regarding $ firejail --ignore=dbus-user /usr/bin/evince path/to/document that you suggested above, the additional noblacklist ${HOME}/.local/share/gvfs-metadata was needed...

Thanks for your help ! Should I close this ?

<!-- gh-comment-id:1266867080 --> @cvlc12 commented on GitHub (Oct 4, 2022): So, regarding `$ firejail --ignore=dbus-user /usr/bin/evince path/to/document` that you suggested above, the additional `noblacklist ${HOME}/.local/share/gvfs-metadata` was needed... Thanks for your help ! Should I close this ?
Author
Owner

@rusty-snake commented on GitHub (Oct 4, 2022):

I think we should update the comment to say that this is also necessary for view settings and add a note about dbus-user.talk ca.desrt.dconf.

<!-- gh-comment-id:1267305840 --> @rusty-snake commented on GitHub (Oct 4, 2022): I think we should update the comment to say that this is also necessary for view settings and add a note about `dbus-user.talk ca.desrt.dconf`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2980
No description provided.