How can I reset Document Viewer's per-document settings?

5,419

Solution 1

You can remove all GVFS attributes, related to evince, for a given file with this script:

file="MyFile.pdf"
while read attribute value; do
    [ "${attribute:0:18}" = "metadata::evince::" ] && \
            gvfs-set-attribute "${file}" -t unset "${attribute:0:-1}"
done < <(gvfs-info "${file}")

You can check the attributes with gvfs-info "${file}"

Solution 2

gvfs-set-attribute your.pdf metadata::evince::sizing_mode "fit-width"

Solution 3

The answer in this Q&A should work in this case as well. However: This will also delete any other type of file metadata stored by gvfs. Unfortunately I don't know how to remove evince metadata only.

Other relevant Q&As:

Share:
5,419

Related videos on Youtube

RusGraf
Author by

RusGraf

My goal here is usually to document.

Updated on September 18, 2022

Comments

  • RusGraf
    RusGraf almost 2 years

    Document Viewer appears to remember my settings (scroll position, zoom, full-screen, etc.) for each document. I've recently changed its default settings and I want them to apply to all documents, including those I've opened previously.

    How can I make it forget all per-document settings without reverting the changes I've made to the default settings?

    • Julian Stirling
      Julian Stirling over 10 years
      In theory it should be in ~/.gnome2/evince, but I can't find the folder on my PC.
  • Virusboy
    Virusboy over 9 years
    Try expanding on this