Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
dconf value for evince contiuous page view
Why aren't setting dconf values honored on?
Owner

8leggedunicorn commented Sep 23, 2015

~  apt-cache show evince
Package: evince
Priority: optional
Section: gnome
Installed-Size: 1210
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Architecture: amd64
Version: 3.14.2-0ubuntu2
Provides: djvu-viewer, pdf-viewer, postscript-viewer
Depends: libatk1.0-0 (>= 1.12.4), libc6 (>= 2.4), libcairo-gobject2 (>= 1.10.0), libcairo2 (>= 1.14.0), libevdocument3-4 (= 3.14.2-0ubuntu2), libevview3-3 (= 3.14.2-0ubuntu2), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.37.3), libgnome-desktop-3-10 (>= 3.11.90), libgtk-3-0 (>= 3.14.0), libnautilus-extension1a (>= 1:2.91), libpango-1.0-0 (>= 1.20.0), libsecret-1-0 (>= 0.7), evince-common (>= 3.14), evince-common (<< 3.15), adwaita-icon-theme, shared-mime-info
Recommends: dbus-x11, gvfs
Suggests: unrar, poppler-data, nautilus, apparmor
Conflicts: evince-gtk
Filename: pool/main/e/evince/evince_3.14.2-0ubuntu2_amd64.deb
Size: 153296
MD5sum: d362345a445c3541708ebb2230a9efb6
SHA1: 18889b444d738808068653d61a50b804419f85a4
SHA256: 287564af675ef5ea108849c92f8fa69834952268eb4c51379d3009c04e4e8ff5
Description-en: Document (PostScript, PDF) viewer
 Evince is a simple multi-page document viewer.  It can display and print
 PostScript (PS), Encapsulated PostScript (EPS), DjVu, DVI, Portable
 Document Format (PDF) and XML Paper Specification (XPS) files.
 When supported by the document, it also allows searching for text,
 copying text to the clipboard, hypertext navigation, and
 table-of-contents bookmarks.
Description-md5: 531974388dc5701b9dbc2f5d96f92ec6
Homepage: http://www.gnome.org/projects/evince/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m
Task: ubuntu-desktop, ubuntu-usb, edubuntu-desktop, edubuntu-usb, lubuntu-desktop, ubuntustudio-desktop, ubuntu-gnome-desktop, ubuntukylin-desktop
Owner

8leggedunicorn commented Sep 23, 2015

~  lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.04
Release:        15.04
Codename:       vivid
Owner

8leggedunicorn commented Sep 23, 2015

Evince stores per document settings using GVFS. As an example:

➜  gvfs-metadata  gvfs-info -a "metadata::" $path_to_document                                                                                                                              
uri: file://$path_to_document
attributes:
  metadata::evince::author: 
  metadata::evince::continuous: 1
  metadata::evince::dual-page: 0
  metadata::evince::dual-page-odd-left: 0
  metadata::evince::fullscreen: 0
  metadata::evince::inverted-colors: 0
  metadata::evince::page: 3
  metadata::evince::sidebar_page: links
  metadata::evince::sidebar_size: 282
  metadata::evince::sidebar_visibility: 1
  metadata::evince::sizing_mode: fit-page
  metadata::evince::title: 
  metadata::evince::window_height: 1369
  metadata::evince::window_maximized: 0
  metadata::evince::window_width: 1355
  metadata::evince::window_x: 2877
  metadata::evince::window_y: 135
  metadata::evince::zoom: 1.1892070770263672
Owner

8leggedunicorn commented Sep 23, 2015

So using gvfs-set-attribute or similar command is necessary to reset or alter how evince treats these documents.

Owner

8leggedunicorn commented Sep 23, 2015

Like so:

➜  gvfs-metadata  gvfs-set-attribute $path_to_document metadata::evince::zoom '1.35'  
➜  gvfs-metadata  gvfs-info -a "metadata::evince::zoom" $path_to_document
uri: file://$path_to_document
attributes:
  metadata::evince::zoom: 1.35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment