How to restart Gnome Shell from console

Post date: Jan 04, 2012 9:39:27 PM

To restart gnome shell:

hopp@ygg:~$ w

22:30:39 up 59 min, 2 users, load average: 0.01, 0.07, 0.15

USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT

hopp tty2 21:32 57:46 0.89s 0.85s -bash

hopp pts/1 :0 22:30 0.00s 0.38s 0.00s w

In column FROM, there is your DISPLAY number (here 0).

hopp@ygg:~$ export DISPLAY=:0.0

(replace first 0 with your DISPLAY number)

hopp@ygg:~$ gnome-shell --replace

or

hopp@ygg:~$ killall gnome-shell

Kills gnome-shell (kills all applications and logs out the user), not exactly same as ALT-F2 r, but could help.

http://community.linuxmint.com/tutorial/view/641

http://forums.linuxmint.com/viewtopic.php?f=205&t=90132