Running newer versions of Gnome (on Wayland), you can't restart the shell with Alt+F2, entering r & then Enter - which used to restart the shell without logging the user out of the session.
More recently, on Fedora systems you used to be able to restart by sending
SIGHUP to the
gnome-shell process - using
top or whatever. However now on Fedora 28 atleast this kills the session and sends the user back to the login screen.
Restarting the shell leaving the session intact is very useful in the event of installing/modifying an extension, or (hopefully not anymore!) having to restart gnome due to it bugging out and using 100% CPU. Is there a current alternative please?
EDIT: I have also tried
gnome-shell --replace (with
export DISPLAY=:0 if on a TTY), and the result is to still be kicked back to the login screen