Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

A nice feature in evince is that when you close the program and later reopen the same pdf, it automatically jumps to the page you were reading. The problem I have is that I often read ebooks on several computers and I have to find were I was on the last computer I was reading the pdf. I think syncing these bookmarks in UbuntuOne would be a killer feature for people like me who read pdfs on different computers.

By investigating a bit, I found where evince was storing this data. It is in the gvfs metadata and it can be accessed for a particular document by typing

gvfs-ls -a "metadata::evince::page" myEbook.pdf

Rather that querying a particular file, I'd like to query the whole metadata file located in ~/.local/share/gvfs-metadata/home for the home directory, for any file where this particular attribute is set to some value. The biggest issue is that gvfs metadata and stored in binary files and we all know it's not easy to get something out of a binary file.

So, do you know any way to query the gvfs metadata for some attribute?

share|improve this question
    
This question seems abandoned, there is not further information or activity added to it for several months. I am flagging this to be closed by a moderator. If you think this issue is still affecting you you can flag a moderator to re-open it. –  Bruno Pereira Feb 2 '12 at 16:46
add comment

closed as too localized by Bruno Pereira, Marco Ceppi Feb 2 '12 at 18:16

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

As for doing it properly, this would probably involve replacing the backend code that services metadata with a couchdb backend. You can also access all of the metadata from code if you want to program something to solve this killer feature.

share|improve this answer
1  
thanks for the quick fix, but I'm afraid that it may produce unwanted side effects. The metadata affects pretty much every file in the home folder and synchronizing a gvfs-metadata/home on one computer would destroy all metadata on other computers (unless the home folder contents are 100 % identical everywhere). –  Mathieu Comandon Nov 17 '10 at 23:21
    
Sounds like it needs real development. –  Martin Owens -doctormo- Nov 18 '10 at 1:20
    
I would prefer not to touch evince's code, I don't know enough about C programming to handle this. I might ask Alexander Larsson about the format of gvfs metadata, if there's one guy that should know this stuff, it's him. –  Mathieu Comandon Nov 30 '10 at 13:08
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.