On Ubuntu, you can restart GNOME Shell or the GUI using the following methods: There are several different methods available for restarting the Gnome shell on Ubuntu. You can do that without closing or shutting down all other applications. Helps recover Gnome Desktop freezes and apply system configuration changes.
Restart Gnome Shell without closing other programs
On the GNOME desktop, press the Alt + F2 key combination at the same time. Open a command box. Just type it in. r Press Enter in the command box.
Not all applications are closed when using X11. If you are using Wayland, all other applications will be closed.
You can do the same using the command line. Open a terminal (ctrl + alt + t) command line application and run this command.
busctl --user call org.gnome.Shell /org/gnome/Shell org.gnome.Shell Eval s 'Meta.restart("Restarting…")'
Restart Gnome Shell
The following method closes the running application.
Read also: NTag Audio File Tag Editor
Using this method will kill some applications and extensions on your desktop. Use this method only if the above two do not work. In the terminal, run the following command.
killall -HUP gnome-shell
Simply log out, restart the Gnome Shell GUI, and log back in.
Open a terminal and run this command to restart the Gnome GUI
sudo systemctl restart systemd-logind
If you are using GDM, do the following in your terminal:
sudo systemctl restart gdm
Also, if you’re using LightDM
sudo systemctl restart lightdm
On older Gnome (that is, prior to Gnome 3.28), you can use this command to restart the GNome shell.