SliTaz SliTaz Forum

You are not logged in.

#1 2011-10-17 08:48:17

Guest
Guest

LXPANEL is not stable

anyone has notice that lxpanel disappear when, often, closing firefox ? I put the panel

upside . Perheaps it's more stable when fixing it downside ?

#2 2011-10-17 09:54:16

devl547
Administrator
Registered: 2011-06-01
Posts: 285

Re: LXPANEL is not stable

Actually, lxpanel (and everything in lxde) is quiet unstable.

On my laptop lxpanel always crashes with floating point exception (cause of laptop battery applet).

Offline

#3 2011-10-17 11:57:58

babaorum
Moderator
Registered: 2011-03-29
Posts: 109

Re: LXPANEL is not stable

Yup, lxpanel is not very stable. A work-around is to include a lxpanel launch command within right click menu of Openbox, to launch it again as soon as crashed.

In order to insert the command, right-click somewhere on the desktop, open "Openbox" submenu and choose "Openbox menu" option, it will launch Openbox configuration file in leadpad (or whatever is your default text editor).

See what already exists in [c]<!-- Favorites applications -->[/c] section and add after the last existing item:

<item label="LxPanel">

    <action name="Execute"><command>lxpanel</command></action>

</item>

Recharge Openbox and you will see your newly added command in "Favorites applications" submenu in right-click menu.

Hoping it helps,

--Babaorum

Offline

#4 2011-10-18 10:55:24

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: LXPANEL is not stable

There may be another solution to this that I have been thinking of.

Basically, you do a while loop with a sleep period within nohup to do it. If the application is active, it won't start it, but the moment it goes off line, the loop will trigger and after the sleep period it would restart the application. It should look like this:

[c]nohup sh -c "while sleep 2 ; do lxpanel >> /dev/null 2>&1 ; done" > /dev/null 2>&1 &[/c]

What happens is that after two seconds after lxpanel dies, this little script will bring it back. You can put it in the auto-started applications file in openbox. I haven't really tested it since I've switched to xfce4, but it's worth a shot wink

Offline

#5 2011-10-19 07:09:18

Guest
Guest

Re: LXPANEL is not stable

Thx both for your answers,

Is it possible to create/modify a pluging into Lxpanel ?  There is a kind of directory menu but it always come with a "Open in a terminal" beside opening the directory with pcmanfm as casual . Could be interessting to make it like "Places" in ubuntu menu

#6 2011-10-19 14:10:07

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: LXPANEL is not stable

I seemed to have found a newish fork of lxpanel: http://code.google.com/p/lxpanelx

Going to have quick look at it and see what's new wink

Offline

#7 2011-10-20 05:48:06

trufighter
Member
Registered: 2011-08-26
Posts: 14

Re: LXPANEL is not stable

I been through this before! I thought I was going crazy or some Vampire cracker

got a hold of me! But after awhile I found that after browsing Firefox I too

suffered from the "Vanishing Panel". So I came up with this simple program

that summonded my beloved panel......

I've included the source code...I tried to upload

the text file & .c but its against the rules

So here it is at a glance...

/*

  tru_fight3r

  gcc version 4.4.1 (GCC)

  Problem:

  vanishing lxpanel

  Simple solution:

  1) a pseudo shell script that forks it b@ 2 life

  2) just click "xp" whenever lxpanel takes a break >:)

  Notes:

  this as shell script = 39.kb (phat)

  but when done from C = 5.9kb (tiny)

  It works for me, hope it does 4 u!

*/

#include <stdio.h>

int main(void)

{

    system("lxpanel &");

    return 0;

}

Offline

#8 2011-10-20 18:48:11

trufighter
Member
Registered: 2011-08-26
Posts: 14

Re: LXPANEL is not stable

Inspired by Trixar_za I wrote this little add-in to "menu.xml"

What does it do?:

It creates and kills lxpanel at will

Why kill it?:

For fun, or for whatever purpose (mainly if you have another systray or panel running)

1) So go to the last item...(</item>)

   press enter, then add this...

  # new-code--> revive lxpanel

    <item label="LiveXP">

      <action name="Execute"><command>lxpanel</command></action>

    </item>

  # new-code--> kill lxpanel

    <item label="KillXP">

     <action name="Execute"><command>killall lxpanel</command></action>

    </item>

2) Now iconify all the windows & right click anywhere on the desktop

3) Follow these steps.........Openbox/Resart

   And voila! You should now have a quick & easy lxpanel shifter

   (I know the name is corny, but it works! (Chef Ramsey Accent) )

Offline

#9 2011-10-22 18:07:32

babaorum
Moderator
Registered: 2011-03-29
Posts: 109

Re: LXPANEL is not stable

AMHO you could unite the two commands:

[c]<item name="Revive lxpanel"><action name="Execute"><command>killall lxpanel && lxpanel</command></action></item>[/c]

Offline

#10 2011-10-24 05:49:57

trufighter
Member
Registered: 2011-08-26
Posts: 14

Re: LXPANEL is not stable

@ Babaorum thats actually what I did to my desktop. By doing this a new door has been opened,

I will now write shortcuts to all the cool code I write! Slitaz is volumes better than Windows

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.023 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]