adding support for hibernation to xfce4-sessions's exit dialog

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Wed Jul 12 16:12:31 CEST 2006


Andre Puschmann wrote:
> hi folks,
> i am using hibernate (s4) and hibernate-ram (s3) quite often on my
> system thus i  integrated it into session-logout-dialog as an
> alternative for poweroff and reboot.
> 
> but i got a question about how the shutdown-procedure works. is it like
> this?
> - if i select for instance "Power Off"
> xfsm_shutdown_helper_send_command() in shutdown.c sends the command to
> xfsm-shutdown-helper-sudo.c which does all the fork() and sudo stuff in
> order to have a root-privileged xfsm-shutdown-helper which gets the
> commands via stdin and finally executes them.

Yes, with the previously spawned shutdown helper (required to test
whether sudo needs a password).

BTW: IIRC, there's already such a patch available in Xubuntu.

> regards
> andre

Benedikt



More information about the Xfce4-dev mailing list