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

2018-07-21 Thread Germán Poo-Caamaño
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
?

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

signature.asc
Description: This is a digitally signed message part
___
evince-list mailing list
evince-list@gnome.org
https://mail.gnome.org/mailman/listinfo/evince-list


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

2018-07-21 Thread Jason Crain
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.
___
evince-list mailing list
evince-list@gnome.org
https://mail.gnome.org/mailman/listinfo/evince-list


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

2018-07-21 Thread Alan Stern
There's a PDF file I need to read quite often.  Lately, opening it in 
evince hasn't worked.  No window appears on the screen and no messages 
appear in the terminal window.  The best I can describe it is that the 
behavior resembles what would happen if evince tried to open the 
document window completely outside the boundaries of my computer 
screen.  All I can do is kill the program; there's no way to send it 
any input or do anything else.

Nothing is wrong with the PDF file itself.  When I make a copy of the
file (or even create a hard-link to it with a different name), evince
opens the copy (or the link) properly.  I can only conclude that
evince's memory of the settings in use during the last time I viewed
the file has somehow gotten corrupted.

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.

This is with evince version 3.28.2 under Fedora 28.  What's the 
solution?

Thanks,

Alan Stern

___
evince-list mailing list
evince-list@gnome.org
https://mail.gnome.org/mailman/listinfo/evince-list