udev to pup_event_frontend_d

Ok, I have got this working. Very simple, wrote a couple of udev rules to write to /tmp/pup_event_backend_s whenever a block device is inserted or removed.

My frontend daemon uses inotify to wait for any change to /tmp/pup_event_backend_s then updates the desktop icons etc.

I previously had my backend daemon pup_event_backend_d writing to /tmp/pup_event_backend_s every 2 seconds, for purposes of probing various things, such as whether a CD/DVD inserted. However I did not know how to get udevd to generate a periodic write to that file, so I moved the 2-second timeout functionality into pup_event_frontend_d.

What matters is the end result. Udev is now working nicely in Puppy. I think that I will make it the default.

Another thing that I fixed: in 4.1alpha3 there was an annoying delay before the freememapplet appeared in the tray when first start JWM. I have removed that delay.

Posted on 10 Jul 2008, 16:24

No comments posted yet.