Simple. We chase each individual setting that Unity uses, and reset them to their default values, and then reload unity to apply changes. Ah yes, we also kill Unity and compiz before we start, since it is known to get tricky if we change settings under compiz's nose.
Why is this better compared to using dconf-editor or dconf reset ?
Didier Roche (didrocks), the author of unity python wrapper says dconf reset does not work in all cases.
The consensus among Unity developers is that the settings be modified using Gsettings instead of dconf directly.
What exactly is dconf ?
A little history
The configuration settings were managed by gconf earlier.
Gnome provides Gsettings as a replacement for gconf.
Gsettings is a high level api that manipulates the settings stored in a backend.
Unity stores its settings in the backend dconf since it can be loaded much faster than gconf.
As Kees said, running
unity --reset
will reset all of the launcher options, but it won't remove your custom favorites. To also remove any launchers you've added to the launcher, run
I would recommend running the gsettings command before unity --reset, so that you won't have to restart unity for the gsettings key reset to take effect.
Install ubuntu tweak. The beauty of ubuntu tweak is that you can save desktop and application settings and restore after you messed something up. It also has a function to go back to original settings.
I use this workaround to reset the unity configuration. But with Unity, it resets all configurations such as the custom wallpaper, themes, icon themes etc.
Delete the user specific dconf database file:
rm ~/.config/dconf/user
Then Logout and Login again.
IMPORTANT! Be sure that you BACKUP this file, because you lose ALL Unity's settings and switch to default!
The following command does not work on newer distributions (as the reply is
ERROR: the reset option is now deprecated
).For 12.04 and older
The simplest way is to hit "open a Terminal" or hit Alt-F2 and run the command:
For 12.10 - 13.04
I, along with jokerdino and amithkk have created a python script that cleanly resets Unity for Quantal and above.
It is hosted on github at https://github.com/phanimahesh/unity-revampThe script is now bundled with Unity Tweak Tool. You can install it using
For 13.10 & 14.04
To reset Unity, do
Note - if this does not resolve your Unity issues then the following Q&A may apply to you:
What happens behind the scenes?
Simple. We chase each individual setting that Unity uses, and reset them to their default values, and then reload unity to apply changes. Ah yes, we also kill Unity and compiz before we start, since it is known to get tricky if we change settings under compiz's nose.
Why is this better compared to using
dconf-editor
ordconf reset
?dconf reset
does not work in all cases.What exactly is
dconf
?A little history
As Kees said, running
unity --reset
will reset all of the launcher options, but it won't remove your custom favorites. To also remove any launchers you've added to the launcher, runOr manually by:
I would recommend running the gsettings command before
unity --reset
, so that you won't have to restart unity for the gsettings key reset to take effect.Try to do this:
Insert and run this commands:
Restart, this should work.
For Ubuntu 12.10 (Revised, again)
OK, here it is. You can use 'dconf reset' as previously outlined and will do exactly what 'unity --reset' used to do.
Then restart:
Apparently it would actually be better to stop compiz before using the 'dconf reset'. Which I'm currently working on.
You can also look at the settings you have:
To reset the unity icons you can still use
This information is from a variety of sources, after much googling.
Install ubuntu tweak. The beauty of ubuntu tweak is that you can save desktop and application settings and restore after you messed something up. It also has a function to go back to original settings.
If you've messed with the indicators and need to reset those see this question:
Sometimes people accidentally turn off the Unity plugin or setting an unsupported option in CCSM can cause it to break.
You can turn it back on by following these directions:
For 12.10 — 13.04 [maybe older]
I use this workaround to reset the unity configuration. But with Unity, it resets all configurations such as the custom wallpaper, themes, icon themes etc.
Delete the user specific dconf database file:
Then Logout and Login again.
IMPORTANT! Be sure that you BACKUP this file, because you lose ALL Unity's settings and switch to default!
For 11.10 and later
From http://wiki.ubuntuusers.de/Unity/FAQ