Official icewm package is broken

Please post any bugs you have found
Message
Author
User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#16 Post by Pizzasgood »

There's an official IceWM? Well I'll be danged. Need to pay more attention. And Mplayer too? Huh.
Quite right - window manager .pets should pop up a window telling you what to do.
May be worth being considerate to people who want to use the package in Unleashed, and craft the pinstall.sh script so that it only brings up windows and stuff if it's being installed as a package, not during Unleashed.

Easy enough to do. If it's being installed as a package, pwd will return'/' because PETget runs them at /. If it's being run from Unleashed, it will return the path to puppy-unleashed/rootfs-complete/.

So do something like this:

Code: Select all

if [ "$(pwd)" = "/" ]; then
  Xdialog --msgbox "Yo.  Go do stuff." 0 0
fi

As for batteries, JWM does it fine. I don't know where exactly the decision to show or not show it happens - never wondered about it before. If the applet itself doesn't handle that, then you could just look in /proc/acpi/battery/. If it's empty, then either there is no battery, the battery module isn't loaded (then there would be no /proc/acpi/battery directory either), or the battery doesn't use acpi.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#17 Post by 01micko »

Pizzasgood said
As for batteries, JWM does it fine. I don't know where exactly the decision to show or not show it happens - never wondered about it before. If the applet itself doesn't handle that, then you could just look in /proc/acpi/battery/. If it's empty, then either there is no battery, the battery module isn't loaded (then there would be no /proc/acpi/battery directory either), or the battery doesn't use acpi.
I checked, /root/.jwmrc-tray. Seems to work fine for me either on laptop with battery or desktop. I will edit my /root/.icewm/preferences file on my desky just to see if it works as it should. Back in a sec...
done, rebooted desktop, no battery meter, just as in JWM. :wink:

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#18 Post by HairyWill »

01micko wrote:rebooted desktop, no battery meter, just as in JWM. :wink:
the battery meter is launched by jwm swallowing the script asapmshell.

Code: Select all

<Swallow name="asapm">
    asapmshell -u 4
</Swallow> 
This script contains

Code: Select all

#!/bin/sh
#v3.99 bugfix by kirk
if [ -a /proc/apm ]; then
 if [ "$(cat /proc/apm | cut -d % -f 1 | awk '{print $(NF)}')" -lt "0" ] ; then 
  exit
 fi
fi

#refinement by jeffrey...
# Skip loading apm for PC with no /proc/apm or if field 7 (battery percentage) is negative, eg
#    1.16ac 1.2 0x03 0x01 0xff 0x80 -1% -1 ?
#awk -F '[ %]+' '$7<0 {exit 1}' /proc/apm 2>/dev/null || exit

exec asapm $@
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

magerlab
Posts: 739
Joined: Sun 08 Jul 2007, 20:08

#19 Post by magerlab »

icewm can show batteries and network status by itself
look at the preferences file
the line with this words
(for battery)
show apm status

as for asapm it has -withdrawn option to tray isertion( for example, works good with stalonetray)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#20 Post by 01micko »

@ HairyWill, What kind of code (language? 'scuse my ignorance!) is this in .jwmrc-tray? I know a little html and it looks similar.

@ ttuuxxx, I have found to get the tray working exactly as I want on my lappy I must make sure this line =1 and uncommented,

Code: Select all

#  Show network status on task bar (Linux only)
TaskBarShowNetStatus=1 # 0/1
and these lines look like this.

Code: Select all

#  Show APM/ACPI/Battery/Power status monitor on task bar
 TaskBarShowAPMStatus=1 # 0/1

#  Show APM status on task bar in time-format
 TaskBarShowAPMTime=0 # 0/1
The 'time-format' line I don't like, I prefer a percentage. However it is easy enough changed.

The other thing is, to ensure it all starts at bootup, I created a symlink in /root/Startup/ to ~/icewm/startup :?
Puppy Linux Blog - contact me for access

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#21 Post by HairyWill »

jwm configuration files are written an xml like format

I'm not sure why you are mixing up icewm and jwm. They are both window managers and you only use one at a time.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#22 Post by 01micko »

Not mixing things up at all. I was earlier making a comparison. Thanks for your reply. When you say xml 'like', is there several formats like xml and html?

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

#23 Post by clarf »

ttuuxxx wrote:
disciple wrote:
BTW, why don't you ever use the new 1.3x series Icewm? Is it just that it won't compile?
To answer that, Yes it won't compile, I tried numerous of things under 4.0 to get it to work, And now I tried about 6 things in 4.1 and still doewsn't. grrrrrrrrrrrr
well atleast the one which I have already, runs great :)
ttuuxxx
ttuxxx, I get this from the depot...

"please apply the attached patches to icewm-1.3.3 since on a modern
C++ compiler, const-correctness is checked thoroughly.

Helmut Jarausch."

Could you verify this info from Helmut, thank you in advance
Attachments
YImage_const.patch_icewm1.3.3.zip
icewm-1.3.3 Patch
(996 Bytes) Downloaded 432 times

Post Reply