Author Topic: How I refresh lxpanel  (Read 493 times)

Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3881
How I refresh lxpanel
« on: January 05, 2013, 10:26:12 PM »
I use lxde with fusion-icon (compiz). Ocassionally, lxpanel disappears. When I open a terminal to restart it, it says that it is already running. So, I use 'pkill lxpanel' and then restart it. This happens often enough, once or twice a day, that I wanted to create a desktop link to automatically restart it. Unfortunately, pkill doesn't seem to work the same way in a script. It kills lxpanel, but the script stops without restarting lxpanel. After a little bit of googling and testing, this seems to work everytime, even if lxpanel crashed:

Code: [Select]
#!/bin/bash
kill `pidof lxpanel`
lxpanel

I saved this as a script and created a desktop launcher and now in one click my panel is back.

Galen

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: How I refresh lxpanel
« Reply #1 on: January 06, 2013, 04:28:19 AM »
I try lxdecc (Customize your LXDE) > Refresh Panel
much simpler here  :)

Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3881
Re: How I refresh lxpanel
« Reply #2 on: January 06, 2013, 10:43:00 AM »
Thanks. I knew there was a menu option somewhere. It still doesn't help if you can't get to the menu without the panel. Is there a way to make a desktop shortcut to this option?

Galen

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: How I refresh lxpanel
« Reply #3 on: January 06, 2013, 10:51:31 AM »
This is the command for it

Code: [Select]
lxpanelctl restart
or add lxdecc to Desktop...
« Last Edit: January 06, 2013, 10:57:36 AM by daniel »

Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3881
Re: How I refresh lxpanel
« Reply #4 on: January 06, 2013, 04:16:01 PM »
I looked in /usr/bin/lxdecc and found the command that was used. Thanks for the tips. Although my script worked, it is preferable to use existing solutions!

Galen

Offline yonnie

  • Full Member
  • ***
  • Posts: 92
Re: How I refresh lxpanel
« Reply #5 on: January 22, 2013, 08:46:13 PM »
I have not experienced this problem, does anyone know the cause?

Offline topcat

  • Jr. Member
  • **
  • Posts: 15
Re: How I refresh lxpanel
« Reply #6 on: January 23, 2013, 04:23:13 AM »
Yes, I have seen it occasionally.  It is a "known" problem in the LXDE panel.  It does occur occasionally when you have only one panel but becomes more prevalent when you are running multiple panels and one or more has a TaskBar.  I believe it has something to do with an overflow when the TaskBar has too many icons to display, but this is unconfirmed.

As daniel said, the easiest solution is the RestartPanel  command, i.e, [Alt+F2] lxpanelctl restart.
Or if that is too hard and you have a panel that works (with lxdecc on it) then just use the "Refresh Panel" button.
Failing that ... [Alt+f2]lxdecc , then "Refresh Panel"

hth
TC