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 622288 - Migrate to GSettings to make it easier to change default settings
Migrate to GSettings to make it easier to change default settings
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
git master
Other Linux
: Normal major
: ---
Assigned To: tracker-general
Jamie McCracken
Depends on:
Blocks: 622558
 
 
Reported: 2010-06-21 13:32 UTC by Vincent Untz
Modified: 2011-03-08 16:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vincent Untz 2010-06-21 13:32:53 UTC
Right now, if I want to change a default setting for some part of tracker, I have to patch the code. Distributors really need a simple way to change the default by tweaking some file in /etc or /usr/share/tracker

As an example, in openSUSE, we want to not index removable devices by default. And it means we have to patch src/miners/fs/tracker-config.c to change DEFAULT_INDEX_REMOVABLE_DEVICES to FALSE. That's horrible, especially as it means someone who would want to create a derivative will not have the chance to change the default enforced by openSUSE.
Comment 1 Martyn Russell 2010-06-22 22:11:46 UTC
Hi Vincent,

Yes, we patch the config for MeeGo too. It certainly makes sense. We will look into doing this.
Comment 2 Vincent Untz 2010-06-28 12:36:48 UTC
Oh, btw, for this to work really well, it's important that the complete config does not get copied into the user dir: the user config should only consist of the changes the user explicitly made.

This way, changing defaults at a later point will also work for users with a configuration.

(so, hrm, actually, using GSettings would solve all this ;-))
Comment 3 Martyn Russell 2010-09-09 13:51:21 UTC
Updating version
Comment 4 Martyn Russell 2010-09-09 13:52:07 UTC
Oops, did this to the wrong bug :/ I meant to update the title.
Comment 5 Carlos Garnacho 2011-02-17 17:46:52 UTC
There is now a "gsettings" branch implementing this
Comment 6 Martyn Russell 2011-03-08 16:17:12 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

This won't be appearing in the tracker-0.10 releases.