Re: [Tracker] PATCH: Allow specifying the ontology directory in DConf



Hi!

On 9 August 2013 16:32, Martyn Russell <martyn lanedo com> wrote:
On 08/08/13 14:42, Jonatan Pålsson wrote:

Hi list,


Hi,


Currently it is possible to specify the directory holding the Tracker
ontologies using a pre-processor flag. I would however like this to be
more configurable (due to work with custom ontologies). The following
patch allows users to configure the ontologies directory using a key
in DConf. The new key is called ontologies-dir and is placed in
org.freedesktop.Tracker.DB.


Can I ask what is wrong with using the TRACKER_DB_ONTOLOGIES_DIR environment
variable?


The idea here is the same as with the previous patch. Ideally I would
like all configuration to be placed in dconf. I'm looking forward to
be convinced in using environment variables instead ;)


The patch is available here:

https://github.com/Pelagicore/tracker-ivi/commit/70037b236124a2354a7928786a9047c29b67de79

I don't believe the patch will apply cleanly without first applying

https://github.com/Pelagicore/tracker-ivi/commit/213456024d686305d0f6a30b09fa81f04e601fdd
(user data & cache in DConf) - but I can create a clean patch if this
previous patch is not of interest.


Perhaps if you can explain why you need such radical changes to the
locations outside of are standardised areas, that could help us understand
the situation a little better :)

The reason for modifying the ontologies path is basically that I have
different sets of ontologies (the original Tracker ones, and a more
light-weight set of ontologies). I would like a non-root user to be
able to modify her ontologies, and configure Tracker to use these.


-- 
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]