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?

link|improve this question

feedback

2 Answers

up vote 5 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
link|improve this answer
Thanks I wasn't sure --replace = "restart". – Benjamin Jan 31 at 15:56
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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