Re: [evince] How can I erase evince's memory of a document's settings?



On Mon, 2018-07-23 at 10:16 -0400, Alan Stern wrote:
On Sat, 21 Jul 2018, [ISO-8859-1] Germn Poo-Caamao wrote:

On Sat, 2018-07-21 at 18:02 -0500, Jason Crain wrote:
On Wed, Jul 11, 2018 at 12:02:50PM -0400, Alan Stern wrote:
Therefore I would like to erase those settings and start
fresh.  The
question is how to do so -- there doesn't appear to be any
way.  "gio
remove" will get rid of the file's entry in the "Recent
Documents"
screen, but when I go ahead and open it again, evince behaves
the
same
faulty way.

The per-file settings are stored as GVFS metadata. You can view
them
with `gio info file.pdf`. You can delete the settings with for
example
`gio set -t unset file.pdf metadata::evince::page`. I don't think
there's a simple way to unset them all at once, but you could
unset
any
that look problematic or create a script that unsets each one.

The problematic ones could be:

  metadata::evince::window_height
  metadata::evince::window_width
  metadata::evince::window_x
  metadata::evince::window_y

May you share the output of:

$ gio info file.pdf | grep evince
?

Thanks to both of you for your suggestions.  Here is the output:

  metadata::evince::author: Atmel Corporation
  metadata::evince::continuous: 1
  metadata::evince::dual-page: 0
  metadata::evince::dual-page-odd-left: 0
  metadata::evince::fullscreen: 1
  metadata::evince::inverted-colors: 0
  metadata::evince::page: 0
  metadata::evince::rotation: 0
  metadata::evince::sidebar_page: thumbnails
  metadata::evince::sidebar_size: 256
  metadata::evince::sidebar_visibility: 1
  metadata::evince::sizing_mode: fit-width
  metadata::evince::title: SAM D21E / SAM D21G / SAM D21J
  metadata::evince::window_height: 968
  metadata::evince::window_maximized: 0
  metadata::evince::window_width: 1270
  metadata::evince::window_x: 5
  metadata::evince::window_y: 1029
  metadata::evince::zoom: 2

It's not obvious which one is causing the problem, although I'd guess
window_y.  Anyway, I erased the following attributes:

        fullscreen, page, window_maximized, window_height, 
        window_width, window_x, and window_y,

and now the file is displayed properly.

In which environment are you running Evince? Which version?

-- 
Germán Poo-Caamaño
http://calcifer.org/

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]