[Pm-utils] Re: s2both

David Zeuthen david at fubar.dk
Mon Mar 12 15:01:50 PDT 2007


On Mon, 2007-03-12 at 22:46 +0100, Danny Kukawka wrote:
> On Montag, 12. März 2007, David Zeuthen wrote:
> > On Mon, 2007-03-12 at 21:42 +0100, Danny Kukawka wrote:
> [...]
> > > Do they? KPowersave for example depend on *.can_* property == TRUE && 
> > > org.freedesktop.Hal.Device.SystemPowerManagement.method_names contain the 
> > > needed entry 
> > 
> > Relying on HAL internals (the latter) like that probably isn't good.
> 
> Why? Where is the difference if I use DBus introspection or check the keys
> directly? I need to do one of both (because I don't need to show the user
> the option to suspend if the interface is not there) and check HAL the 
> simplest way. 

Requiring a more recent HAL version is what you want. Those properties
are internal to HAL and, while I don't see them changing right now, they
may change in the future - for example to move into a x-internal-hal.*
name space :-)

     David




More information about the Pm-utils mailing list