Subscribe to How-To Geek

Recommended: Click Here to Run a Free Scan for Common PC Errors   [Sponsored Link]

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)

image  

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

image

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

image

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.

The Geek is the founder of How-To Geek and a geek enthusiast. When he's not coming up with great how-to articles, he's probably writing at his personal blog. This article was written on 03/18/08 and tagged with: Linux

Comments (6)

  1. Naresh V

    Hi,

    What fonts are you using there?

  2. Grant Johnson

    Another easy way to do this, although it will restart all of X, and not just the panel is CTRL-ALT-Backspace.

  3. The Geek

    @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.

  4. Justin

    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.

  5. The Geek

    @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.

  6. Jonadab

    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 :-)


Leave a Comment




Leave your friendly comment here. If you have a computer help question, leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Copyright © 2006-2008 HowToGeek.com. All Rights Reserved.