Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to implement a keyboard shortcut to restart gnome-shell whenever this one crashes (some bugs aren't currently fixed just yet). For this I would need a command line to restart the shell.

The Alt+F2 and restart command won't work when the shell is crashed because the prompt is implemented in the shell.

Hence, how to restart the gnome-shell from command line?

share|improve this question

3 Answers 3

up vote 12 down vote accepted

The command to replace the gnome-shell would be gnome-shell --replace.

From the manual page of gnome-shell:

--replace             Replace the running window manager
share|improve this answer
    
Thanks I wasn't sure --replace = "restart". –  Benjamin Jan 31 '12 at 15:56

The command should just be gnome-shell --replace.

share|improve this answer

The easiest way is to Alt+F2 and type r then .

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.