I've researched this a bit previously.
Current situation:
1. IIRC, Shutdown and reboot are handled by ConsoleKit.
2. Suspend is now handled by DevKit/Power, but later it will become upower.
3. HAL still works in some places where devkit is not available.
4. The gdm support can be dropped as gdm no more uses that old IPC mechanism.
5. The condition of kdm is unknown. investigation is needed.
6. Though gdm doesn't work as before, we still need user-switching
facilities when its available.

As we use dbus and didn't bind to any one of the preceding methods,
it's possible to support all of them at the same time. Just check for
availability of devkit and consolekit at runtime. If they're not
available, check if HAL works. This should work for FreeBSD where HAL
is available and devkit is not. (Actually DevKit is Linux only) This
approach should keep backward compatibility. Since things are linked
at runtime, we don't have additional dependencies, either.

The last issue to solve would be what to do if all of preceding
mechanisms are not availble? Is calling 'reboot' and 'shutdown' with
sudo or something similar as fallback an option? If it is, how to do
it correctly?

On Wed, Feb 17, 2010 at 11:33 AM, Marty Jack <[email protected]> wrote:
> Good progress today.  I have the screen display up and running.  The way I do 
> it is to have a single toplevel fullscreen window and a box with the controls 
> in it surrounded by four drawing areas into which I draw the root window 
> screenshot in the foreground.  This is the only way I could think of to do it 
> that leaves the box with the controls having the correct background.
>
> The part that is left is layering in the mechanism.  Logout is easy and is 
> finished.
>
> The actual critical issue for us is that the mechanisms are very close to 
> changing away from HAL.  We don't have support for the new mechanism, 
> DeviceKit/power, and if this isn't adjusted we will lose the ability to do 
> everything except Logout.  Probably we will need the HAL mechanism also for a 
> good while until the distro releases that are HAL based are sufficiently old. 
>  Also, it currently has support for the extremely old GDM mechanism with the 
> socket.  I think this went over to DBUS in 2.20 and this would be a good 
> opportunity to remove it.
>
> After I do some more research I'll make a proposal on the mailing list.
>

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to