Where does evince store its per-document state (position, etc)?
The settings are stored under ~/.local/share/gvfs-metadata/
, but this knowledge is of little use since you cannot do anything practical with the binary files therein.
To read or edit the per-document settings, use the following gvfs tools, passing them the path to the document of which you want the settings:
Reading:
gvfs-info /path/to/file
. Example line of output:metadata::evince::n-copies: 5
Editing:
gvfs-set-attribute /path/to/file metadata::evince::n-copies 1
Removing:
gvfs-set-attribute /path/to/file -t unset metadata::evince::n-copies
(credits to Christophe Drevet-Droguet for this one!)
Paths can be relative to the current dir.
Things have changed since the previous answer was given (October 2011). The window settings of Evince are now being stored in binary, in the directory ~/.local/share/gvfs-metadata/
.
The per document settings are stored in the file ~/.gnome2/evince/ev-metadata.xml
.