On 2008-07-07 23:48:17 +0200 Riccardo <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> 
>>>> I've written code in SystemConfig in the Étoilé repository for  getting 
>>>> power status on FreeBSD and OpenBSD as well.  If this is of  any use to 
>>>> you, feel free to steal it - it's BSDL.
>>> 
>>> Didn't Andreas Schick write an Etoile menulet that used DBus to  determine 
>>> the battery status? It used to be available at 
>>> www.andreasheppel.de/software.html
> 
> I don't like the idea of depending on DBus. All this power  checking has too 
> many layers, indirections and uncertainity already. Now Linux has also /sys 
> filesystem and I bet I will end needing to support it alongside of /proc.
And this is the exact reason why I went for dbus with my battery menulet. My 
first approach (on Linux) was to use the apm/acpi stuff in /proc, but this 
needed regular polling, lots of code to parse the output and (because of the 
polling) was rather CPU consuming. Once I had the necessary parts of dbus and 
HAL wrapped in ObjC the rest was child's play.
I can see your reasoning against dbus on systems where HW access is simpler and 
more consistent, but using either conditional code or different bundles you can 
use the best solution for each OS. And for Linux, that's my opinion, dbus/HAL 
is the much better solution than polling proc, sys or whatever.

-Andreas

-- 
Mail: andreas dot schik at web dot de
Home: http://www.andreasheppel.de

PGP Key is available from the MIT key server (pgp.mit.edu).
RFC3156 defines security multipart formats for MIME with OpenPGP.

Attachment: pgpgtI5tLI3Kw.pgp
Description: PGP signature

_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to