Reload the Gnome or KDE Panels Without Restarting (Linux)
If you do a lot of tweaking to the panels in Gnome or KDE, you've probably run into an instance where you enabled a plugin or changed a setting and need to restart to see the effect (or maybe you locked something up). Instead of logging out or rebooting, we'll just reload the process.
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:
killall gnome-panel
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:
dcop kicker kicker restart
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:
killall kicker
kicker
This will immediately restart the panels. Note that you could run these commands from the terminal instead of the run dialog.


Hi,
What fonts are you using there?
Another easy way to do this, although it will restart all of X, and not just the panel is CTRL-ALT-Backspace.
@Grant
That's a good point… of course restarting X will also restart any applications you have open. I usually try to avoid that since I've got 40 Firefox tabs open at any given point =)
@Naresh: I think I'm using Lucida Grande, but I can check.
You ought to be able to combine the two commands into one using &&, i.e. "killall kicker && kicker". Not an earth shattering reduction in steps, but if you had to do it very often, it could add up.
@Justin
You know, you really should be able to, and that's what I originally had written. Thankfully I tested it first, because it just didn't work for me. Kept giving me weird error messages.
If you really want to get the whole thing down to a single command line, it might help to put a short-duration sleep statement between the two commands. Or, if you do it often, put the commands in a shell script and bind it to a hotkey