Yes, /proc is not a real bloc device, inotify can't monitor it. You
can improve some widgets, but for most of them, it will be impossible.

On Wed, Mar 18, 2009 at 8:07 AM, Julien Danjou <[email protected]> wrote:
> At 1237331029 time_t, Nathan Huesken wrote:
>> What do you thing? Cool Idea or garbage?
>
> Both.
> To monitor regular file, you can use inotify. You should probably
> require à Lua module to access this function, but that should not be too
> hard to do. However, note that inotify is Linux specific.
>
> OTOH, and AFAIK, inotify won't work for /sys or /proc , because this 2
> file systems are not real file sytems and no one is writing your
> battery status inside a file; it's when you open it that you go and ask your
> battery its status.
>
> Cheers,
> --
> Julien Danjou
> // ᐰ <[email protected]>   http://julien.danjou.info
> // 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
> // When I get sad, I stop being sad and be awesome instead. True story.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAknAncIACgkQpGK1HsL+5c11RwCgoZN48Lujz6O54T7oY1W7gyB9
> yUQAmgPvQl+tjyEdG/qDnFkRgGTzUT47
> =uriq
> -----END PGP SIGNATURE-----
>
>



-- 
Christophe-Marie Duquesne

--
To unsubscribe, send mail to [email protected].

Reply via email to