After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 586841 - use GIO metadata instead of our own metadata store
use GIO metadata instead of our own metadata store
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks: 583680
 
 
Reported: 2009-06-24 13:00 UTC by Christian Persch
Modified: 2010-09-28 16:16 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Christian Persch 2009-06-24 13:00:38 UTC
See http://blogs.gnome.org/alexl/2009/06/24/data-about-data/ .

A few problems though:
- we currently access metadata synchronously whenever we need it. Instead, we need to query the available metadata async when opening the document, and keep the info around.
- need to convert current stored metadata to new metadata on first run
Comment 1 Nickolay V. Shmyrev 2009-06-24 23:06:08 UTC
Would be amazing indeed and will solve a lot of our problems.
Comment 2 Carlos Garcia Campos 2009-09-17 10:51:12 UTC
(In reply to comment #0)
> A few problems though:
> - we currently access metadata synchronously whenever we need it. Instead, we
> need to query the available metadata async when opening the document, and keep
> the info around.
> - need to convert current stored metadata to new metadata on first run

There's another problem:

 - we currently save the last document settings in the metadata file as an special document (<document uri="last-used-value") to reuse them for new documents. Gio metadata is associated to real files. 

I think we can just use a GKeyFile in ev_dot_dir for such settings. 

However, using gio metadata is a first step to fix bug #583680, and with multiple processes the use of a GKeyFile in ev_dot_dir is a problem, so in this case we should probably go back to the old solution and use gconf again for such global settings. 

Another solution might be to use an empty file in ev_dot_dir and store the global settings as gio metadata of such file, but this looks more like a hack to me. 

I also think that we shouldn't reuse some of the settings that we currently reuse like continuous or dual view. IMO only toolbar visibility (and perhaps sidebar visibility too, I'm not sure) should be reused for new documents.
Comment 3 Carlos Garcia Campos 2009-10-11 15:32:01 UTC
I've just committed to git master the new metadata code. The only missing thing for now is the last used setting stuff. I'm still not sure how to fix it or even if we really want it. The migration tool doesn't delete the old metadata file so it's safe to test it.
Comment 4 José Aliste 2010-09-27 14:33:09 UTC
Carlos, isn't this solved by the "Save current Settings as Default" in the Edit Menu? Also, maybe this makes more sense in the View menu?
Comment 5 Carlos Garcia Campos 2010-09-28 16:16:42 UTC
Yes, it's fixed. The View menu contains only items that affect the user's view of the current document.