I'm using evince to view my documents under Linux. One thing bothers me, however. It seems to magically remember the position and settings of the window for every document. I searched all over (the hidden directories in my home folder, system files, gconf) for where it might be saving those settings, but I can't find anything. Does anyone know where those settings are?
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:
gvfs-info /path/to/file. Example line of output:
gvfs-set-attribute /path/to/file metadata::evince::n-copies 1
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.
You can use gio command. For example, to see the saved position for example.pdf, run
gio info -a "metadata::evince::page" example.pdf.