If you’re a Linux user, you know that sometimes it’s necessary to reload the panels or Gnome or KDE applications without restarting. For example, if you want to change your wallpaper, or if you want to start a new GNOME session. There are a few ways to do this on Linux. The easiest way is to use the systemctl command. This command can be found in the “system” directory of your Linux installation. To use it, type: systemctl reload gnome-panel gnome-desktop-3 The second way is to use the “kdeinit4” script. This script can be found in the “kde” directory of your Linux installation. To use it, type: kdeinit4 reload panel
In case you are wondering what the panel is, it’s the process that handles everything you see on the screen here. (and all the rest of the toolbars and buttons too)
Gnome / Ubuntu
Under the Gnome environment that Ubuntu uses, the “start” menu and other panels are all contained in a process called gnome-panel. The quickest way to restart that process is to just kill it and let it restart automatically.
Use the Alt+F2 key combination to bring up the Run dialog, and then enter in this command:
This should immediately restart the panels. If for some unknown reason it doesn’t restart, you can just type gnome-panel into the run box.
KDE 3 / Kubuntu
The panels on KDE are in a process called kicker, but instead of just killing the process we can try and send a message to it using dcop and tell it to restart. Use the Alt+F2 key combination to pull up the Run dialog, and then enter in this command:
If the kicker panel is completely locked up it might not respond, so you could also kill the process and restart it by running these two commands:
This will immediately restart the panels. Note that you could run these commands from the terminal instead of the run dialog.