5

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..

Mudit Kapil
  • 2,051
  • 7
  • 30
  • 47

1 Answers1

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

A.B.
  • 90,397
Sergiy Kolodyazhnyy
  • 105,154
  • 20
  • 279
  • 497
  • it is not working created file as root – Mudit Kapil Mar 05 '15 at 16:44
  • OK. 755 permissions meant it should have been available for all users including root, but apparently it doesn't work that way. As for creating a file as root, using sudo to open a text editor is sufficient to have whatever file you write with text editor , to be owned by root and have -rw-r--r-- permissions – Sergiy Kolodyazhnyy Mar 05 '15 at 17:35
  • OK. 755 permissions meant it should have been available for all users including root, but apparently it doesn't work that way. As for creating a file as root, using sudo to open a text editor is sufficient to have whatever file you write with text editor , to be owned by root and have -rw-r--r-- – Sergiy Kolodyazhnyy Mar 05 '15 at 17:35
  • 1
    It can't be run as executable at system start up because unity-tweak-tool --reset-unity asks for options Yes/No while executing – Mudit Kapil Mar 11 '15 at 14:34
  • @Fabby unity-tweak-tool --reset-unity < yes it does not work and gives error output.bash: yes: No such file or directory – Mudit Kapil Mar 11 '15 at 15:34
  • 2
    Sorry: yes | unity-tweak-tool --reset-unity – Fabby Mar 11 '15 at 20:15
  • yes | unity-tweak-tool --reset-unity also not works – Mudit Kapil Mar 12 '15 at 09:30
  • Yes outputs "y", and for unity tweak tool you actually need to type full string "yes", anything else to exit. It has an option to output a string that you specify. I've edited the code, so try that – Sergiy Kolodyazhnyy Mar 13 '15 at 06:20
  • @Serg it gives error after executingcompiz (decor) - Warn: No default decoration found, placement will not be correct WARN 2015-03-13 12:27:25 unityo (appinfo2) <unknown>:0 g_settings_set_value: value for key 'visual-bell-type' in schema 'org.gnome.desktop.wm.preferences' is outside of valid range ERROR 2015-03-13 12:27:25 unity.shell.compiz unityshell.cpp:2773 Decoration plugin is active, disabling it... – Mudit Kapil Mar 13 '15 at 06:58
  • @MuditKapil It gives error for the decoration plugin. Did that affect in any way the way program windows look ? It also says the error because that plug in was active and it disabled it. Doesn't sound like anything serious – Sergiy Kolodyazhnyy Mar 13 '15 at 07:10
  • @Serg `sh -c yes "yes" | unity-tweak-tool --reset-unity' command goes in to a loop – Mudit Kapil Mar 15 '15 at 11:41