[Tracker] PATCH: Allow specifying user data & cache directory paths in DConf
- From: Jonatan Pålsson <jonatan palsson pelagicore com>
- To: "tracker-list gnome org" <tracker-list gnome org>
- Subject: [Tracker] PATCH: Allow specifying user data & cache directory paths in DConf
- Date: Thu, 8 Aug 2013 15:42:23 +0200
Hi list,
I would like to re-locate the user data directory and user cache.
Currently these directories are retrieved using g_get_user_data_dir ()
and g_get_user_cache_dir (), which in turn may be affected by the user
by setting appropriate XDG_* variables. I would however like a more
persistent setting, so I added the user-cache-dir and user-data-dir
keys to the org.freedesktop.Tracker.DB namespace in DConf.
The behavior of the two keys is similar. If the key is set, it takes
precedence over g_get_user_*_dir () and the supplied path is used for
storing the files. If the key is empty (the default setting), the old
behavior is preserved.
Please see the following patch:
https://github.com/Pelagicore/tracker-ivi/commit/213456024d686305d0f6a30b09fa81f04e601fdd
I also have a patch for setting the path to the ontology directory. I
will submit it in a different thread to keep the discussion separate.
--
Regards,
Jonatan Pålsson
Pelagicore AB
Ekelundsgatan 4, 6th floor, SE-411 18 Gothenburg, Sweden
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]