[Sugar-devel] [PATCH] use ConsoleKit instead of HAL for

Michael Stone michael at laptop.org
Wed Apr 21 09:28:19 EDT 2010

On Wed, Apr 21, 2010 at 01:19:54AM -0400, Michael Stone wrote:

>> > > For what it's worth, I would prefer to see a patch which simply
>> called "sudo /sbin/shutdown -h now" and "sudo /sbin/shutdown -r now". I don't
>> see the value that D-Bus and ConsoleKit are providing here.
> That patch was rejected some time ago. [1]
> [1] https://bugs.sugarlabs.org/ticket/615

Sigh. :(

>> It is, nevertheless, true that the authentication details vary from
>> platform to platform. I just don't think they vary enough to be worth making more
>> use of D-Bus and ConsoleKit.
> I guess the worth of going through ConsoleKit comes from keeping close
> to the Gnome codebase and being able to apply parts of their
> documentation to Sugar - we're rather sparse on the latter.

Do you still feel the same way, Tomeu?

>> P.S. - I might feel differently if I knew how to make D-Bus and
>> ConsoleKit work sanely with chroots, which I care about deeply for purposes
>> of testing.
> I do most of my development work inside chroots, usually with no system
> DBus available. 

Whereas I do most of my work with the system bus available via 

   mount --bind /var/run/dbus $(CHROOT)/var/run/dbus

and with internal and external /etc/passwd databases that match on the relevant

> I've recently landed several patches in mainline that allow this to work. 

Neat; I'll go take a look.

> To me, having shutdown/reboot not work inside a chroot is a feature, not a
> bug. ;)

"ln -sf /bin/true /sbin/shutdown" completely addresses my need in this regard.

What's the equivalent with ConsoleKit?

More information about the Sugar-devel mailing list