evince and network drives

Asked by Steffen

I have a problem using evince together with a network drive mounted by autofs which is not permanently available. Obviously evince somewhere stores the path to previously opened files. If one or more of these files are on a network drive which is not available since the pc is shut down it takes more than 60 s until the GUI of evince shows up and then it is even not possible to use evince properly.

Is this problem known or do only I face it?
Does anybody know a solution to this problem?

Thanks for your help!
Steffen

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu evince Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You could try telling the app to not remember the recently opened docs.

Revision history for this message
Steffen (lists-genkinger) said :
#2

How?
I actually removed the ev-metadata.xml file in .gnome2/evince, since I found the history of recently opened docs in there. But surprisingly this did not have any effect. Where else could be a configuration file with network paths used by evince?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

if you delete the file then rerun evince so a default file is made (also search the rest of your home dir for evince stuff). When it is all defaulted, mark the files as read only. Any changes will not be writable. Bit hacky but should be ok.

Revision history for this message
Steffen (lists-genkinger) said :
#4

I deleted the directory .gnome2/evince and the file .gnome2/accel/evince, but this did not solve my problem. evince still needs about 30 to 40 secs to show up AND suprisingly in the file-menu there is still the history of the last five previously opened files. how can this be?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Then its not stored in that location (clearly). You need to find where it is stored and run:

chmod 440 <file>

This will leave it readable but wil not be writable.

Revision history for this message
Andrew Todd (at-drinian) said :
#6

The files you're looking for are now located under ~/.local/share/gvfs-metadata/. I don't know much about them, but presumably that metadata can now be shared with other applications besides evince. Unfortunately, I can't offer you a better solution than setting the files you find there to read-only.

For reference, I was able to discover these files by making sure that evince was running, and issuing the command:

lsof +D ~ | grep evince

which will give you all files opened by the evince process. I happened to stumble across your question today when I got curious myself as to where evince's memory was. Hopefully it's still helpful.

Can you help with this problem?

Provide an answer of your own, or ask Steffen for more information if necessary.

To post a message you must log in.