Messages in this thread | | | Subject | Re: rfkill rework in 2.6.31-rc, hal/dbus access changes? | From | Johannes Berg <> | Date | Mon, 10 Aug 2009 14:22:50 +0200 |
| |
On Mon, 2009-08-10 at 12:43 +0200, Norbert Preining wrote:
> Ok, I have rewritten my rfkill gnome applet with threads and polling > /dev/rfkill. Did work out fine.
Umm. That's wrong in multiple ways. You don't need threads, and you don't need to poll. Just open /dev/rfkill, add the fd to the event loop and read events.
> I hope the format will not change too often ;-)
It won't.
johannes [unhandled content-type:application/pgp-signature] | |