Dconf is pretty young, yet my database is already a mess with lots of "schema-less" keys. Is there a way to do some cleaning up, or would I need to start from scratch (by removing ~/.config/dconf/user I guess)?
Dconf is pretty young, yet my database is already a mess with lots of "schema-less" keys. Is there a way to do some cleaning up, or would I need to start from scratch (by removing ~/.config/dconf/user I guess)?
This is possible using the
dconf reset
command, though it's not clear if that's a side-effect of a bug.For a single key:
Must not end with a
/
.For a whole path:
Must end with a
/
.If you do this while having
dconf-editor
opened, it will likely crash.If you want to clean the dconf database, you first have to dump the whole dconf configuration via:
After those steps you have to reopen your graphical session (log out/in). This will create the
~/.config/dconf/user
file anew with almost 0 content -- default settings.As for the
user-backup
file you had created earlier, it's just a plain text file:So you can edit it and remove the desired entries/blocks from that file. In other words -- clean it.
When you're done, load it:
I think you should restart your graphical session after that again.
And that's it, but you have to remember that all entries that have default values wont be saved -- they will be created anew when some app will ask for it, which is a good thing because you want to backup only the values you had changed.
Install
gconf-cleaner
from the software center.sudo apt-get install gconf-cleaner
In their own words "GConf Cleaner is a tool to clean your Gconf database up that is possibly cluttered with unnecessary or invalid keys."
Very late to this, but I found a way to remove particularly stubborn old entries that isn't mentioned here. In
/usr/share/glib-2.0/schemas
, there will be several.gschema.xml
files. Look there, you'll probably find files associated with those entries.Remove them like this.
Then recompile the
gschemas.compiled
file with this command:From there, I used Alt+F2 > r to reload. Not sure if that's necessary. If using Wayland, you'll probably have to restart if it is. And the entries were gone.