Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Every key in the DConf database has a default value that is used when user accounts are created. How can I change these default values?

share|improve this question

1 Answer 1

up vote 6 down vote accepted
  1. Install the package dconf-toolsInstall dconf-tools.

  2. Run dconf-editor and navigate to the key you want to change the default for. Note the Schema name, in this example that is com.canonical.Unity.Launcher:

    enter image description here

  3. Now we need to create an override file. Run the following command:

    gksu gedit /usr/share/glib-2.0/schemas/my-defaults.gschema.override
    

    You can use any name you want for the file, it just needs to end in gschema.override

  4. Write your new defaults in this file in standard INI format, using schemas for groups names:

    [com.canonical.Unity.Launcher]
    
    favorites=['nautilus-home.desktop', 'google-chrome.desktop', 'banshee.desktop', 'gnome-terminal.desktop', 'ubuntu-software-center.desktop', 'ubuntuone-installer.desktop', 'gnome-tweak-tool.desktop', 'gpodder.desktop', 'shutter.desktop']
    
  5. Save the file and close it. Now run the following command from a terminal to apply your changes:

    sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
    
share|improve this answer
    
You can also search for a scheme, key or value using gesettings together with grep. E.g. to find all launcher items: gsettings list-recursively | grep launcher –  uzhoasit Nov 30 '12 at 5:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.