Yes, I should have mentioned the "!="... I see you added the "-a "$CURRENTWM" != "icewm-session" bit to the test in your ~/.xinitrc..appears to be nice a fix.musher0 wrote:-=-=-=-=-=-
> 01micko says:
Actually, there is a bug in .xinitrc that I just discovered... (thanks Christian ), whoever wrote the code is testing for "icewm" in /etc/windowmanager... as we've been through, it could be "icewm" or "icewm-session". The script then goes on to execute either 'fbpanel' and 'lxpanel' (lucky they aren't present) even if "icewm-session" is the output of "cat /etc/windowmanager".. better inform the powers that be... gposil? Reading this?
-=-=-=-=-=-
I'm not sure I'm following you. Actually, the test if for NOT having jwm or ice* as a wm. (For the newbies, "!=" is a "IS NOT" statement.)
Lines 130-133 of .xinitrc :
-=-=-=-=-=-
#only launch tray for w.m. without inbuilt tray...
if [ "$CURRENTWM" != "jwm" -a "$CURRENTWM" != "icewm" -a "$CURRENTWM" != "icewm-session" ];then
[ -f /usr/bin/fbpanel ] && fbpanel &
[ -f /usr/bin/lxpanel ] && lxpanel &
fi
-=-=-=-=-=-
In plain language, that's: if the window manager is not jwm, not icewm, and not icewm-session, then launch fbpanel AND lxpanel. It insists too, to check that these panels are present, with the -f statement. If you have none, or only one, you can say: "Phew!".
One of those two lines should really be commented out, or there should be another if statement about them. In DOS, you have the GOTO statement, but I don't know the equivalent in bash (sorry). So there could be a statement saying,
[ -f /usr/bin/fbpanel ] && fbpanel & -- then "goto" rest of program,
and you'd skip the lxpanel statement.
If someone has both panels installed, with the above lines, the two panels would theoretically be loaded! Yoohoo! 2 panels for the price of 1, ladies and gentlemen! Look at the nice bargain we have for you!
But then, the poor end-user wouln't know what hit the desktop, though...
It's something I discovered accidentally too, 'cause echinus is incompatible with lxpanel, so I commented out the lxpanel line.
My 2 cents. BFN.
Though a bargain it may seem, it would not be cheap at half the price..
Cheers