Hey tasmond
thanks for posting the C source because you did I was able to locate
an error I had
line 109 had a string compare for /etc/rc.d/rc.local
and since I had a comment I wrote in that file the compare failed

echo '#this file called from rc.sysinit
#you can edit this file
#When firewall is installed, will append lines to this file...
#--------------------------------------------------------------'>/etc/rc.d/rc.local

and your latest Version 1.0 is confirmed to work now with that small patch

can we get the new state to refresh without restarting X ?
I tried a small app that I used many times called refresh X
but it doesnt update jwm I'll keep at that refreshing part till I figure out how

P.S firewallstate-1.0 you should put a "-" symbol in the package name to maintain the package standard

nice app
Joe_________________debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though

Are you saying any firewall state change is not reflected immediately by the icon?

It should be virtually instant to the user. The check routine runs every few milliseconds. I thought originally the routine would hog any processor but it doesn't go above 1% and it's probably less as that's the lowest figure htop can report.

I checked for the line in rc.local as that is appended / removed depending on the firewall install and if my original on/off pet is used.
(I wrote it a while ago to turn firewall on/off when testing)

I borked my Slaxerpup install and need to install it again to check -1's operation with it.

Sorry re the naming convention, it only takes one slip when making the pet and it's in there!

I'm working on 1.1 as I've realised I've only a wired connection here and a wireless connection is not catered for in network address report, it uses ifconfig. I need iwconfig checking as well.
I need my garage laptop back in to check the wireless setup, I use it in there on wireless when I'm playing with my car ecu.

I also need to add more file 'not exist' error checking. It's OK making it work on my machine but I have loads installed on here that can affect the running of firewallstate. What works for me may not for others.
I have the devx and other libraries loaded, so I'm now checking it all out on a fresh frugal install on another laptop.

My next learning step is separate c and h files with 'make' but I'm not sure where to go just yet. I don't know what can be hived off and what is needed left in the 'interval' routine. Or even how to deal with them in code as I'm still unsure of 'static' 'void' etc uses.

I'm looking for a good online primer, I have some which are good on some features of C and others that are good on different features.
It's tiring going back and forth between them and trying to understand.

I'm on the steep part of the learning curve right now and as computers are a lone hobby there's only the net to ask._________________Rob
-
The moment after you press "Post" is the moment you actually see the typso

OK, I think I have a slight clue as to what is happening, why though I'm just guessing.

The 'interval' loop routine is returning a FALSE at some point and exiting. It shouldn't, it should always be TRUE but I think my information routine changes result at some point. So it would return a different value, maybe causing the FALSE return.

I've changed the code and just checking it out. If it works it will be a few cycles quicker.

I moved the info routine out of the repeating loop and made a separate entry for it._________________Rob
-
The moment after you press "Post" is the moment you actually see the typso