My first blog 28 Nov 08
Ok, today I created a small script to fix (work around) a small bug in Pwidgets, by Zigbert. The bug is actually in 'xonclock' which is what Pwidgets uses for the Analog Clock. Pwidgets is to be 'standard' in Puppy 4.2. The work around I figured out is based on 'xevent', a small app that generates a keystroke, a cursor movement or a mouse click.
The problem with the clock is that it did not appear on bootup without a mouseclick on the desktop. After lots of testing I deduced that this was a bug in 'xonclock'. I decided to go hunting for a small program that could generate a mouse click, this, I thought would solve the problem. I found such a program called 'xevent' by Volker Ziemann,
here.
That worked so I wrote a small bash script telling 'xevent' to sleep 5 seconds, move the cursor a few pixels and left mouse click. I then linked this script to my /root/Startup directory and rebooted. Beautiful! Worked first go in Icewm, so then tested in JWM worked again. Success! :)
That was the first script I ever wrote and it can be found here
- 01micko's blog
- Login or register to post comments
The symlink in
The symlink in /root/Startup was incorrect. This did not work when configuring Pwidgets. The fix was to add the line
Code:
/root/wakeclock.sh #my_script
to /usr/sbin/fixwidgets
Zigbert included my fix in the 'Official' Pwidgets-0.2
I'm stoked! About 10K (less than 3K on the disc) of my work will be in Puppy4.2!