Ubuntu – Unity: Stop Dock Repopulation at Restart

desktoplinuxUbuntuunitywindow-manager

Unity is currently the default window manager on my system, a window manager that's available for many Linux distributions, meaning this question isn't Ubuntu-specific. I have disabled the dock's autohide using debconf, but apart from that I haven't altered any of the default settings. My usage pattern is centred around the Windows key; whenever I wish to start something, whether it be Firefox, GVim, or a terminal window, I just hit the windows key, start typing the name, and hit enter when Unity guesses what it is I want.

This use means I have no need to keep anything in the launcher. Given that I only start applications using the keyboard, I only need the dock to show me currently running applications.

Naturally, my response was to simply remove everything I could from the dock, meaning all that remains is running applications.

It doesn't work though. If I remove all 'pinned' applications from the dock, the system repopulates it to the defaults on restart of Unity. I assume that Unity thinks everything being removed is either a user error or a clobbered configuration file somewhere, and as such 'repairs' it by restoring the pinned applications.

How can I suppress this setting so I can have an empty dock?

Best Answer

This page suggests the libdconf0 package may be corrupt, and can be fixed by running this command in a terminal:

sudo apt-get install --reinstall libdconf0

This bug report suggests to me that an update might even fix the problem.

There's some additional information here on that particular issue: https://askubuntu.com/questions/49766/unity-launcher-does-not-remember-favorites

If the above doesn't help, this person (http://ubuntuforums.org/showthread.php?t=1842493#post11429491) suggests deleting the unity config folder may fix the problem. They didn't specify which folder needed to be removed, but if it's a matter of a corrupt Unity configuration, the solutions here might help:

If there is a .unity or .compiz folder in your home folder, removing those (after backing them up) may work as a last resort, although that could mess up your entire gnome/unity/compiz configuration. It might be best to back up your entire home folder first in that case.

Related Question