Unity default settings

Every time I boot in to Ubuntu 14.04.02 64 Bit.I have to run unity-tweak-tool --reset-unity to reset unity to its Defaults. This has happened after I install kubuntu-desktop and logged in to GNOME session once?Meanwhile I've removed and reinstall ubuntu-desktop and unity

sudo apt-get install --reinstall unity
sudo apt-get install --reinstall ubuntu-desktop

Now if I login to Ubuntu session nothing loads?so I can only log in to GNOME Flash Back compiz session..


Solution 1:

Create /etc/xdg/autostart/unity-reset.desktop file, either as root (login with sudo -i) or simply do sudo gedit /etc/xdg/autostart/unity-reset.desktop and put the following information there

[Desktop Entry]
Name=unity-reset
Categories=Application
Exec=sh -c 'yes "yes" | unity-tweak-tool --reset-unity'

Terminal=false
Type=Application

This way you don't have to run unity reset every time, but it will do it for you