Re: shutdown from gnome logout dialog
Le lun 15/09/2003 à 21:06, Thomas Morin a écrit :
> Here is the principle I propose :
> - at logout, gnome-session proposes the reboot and halt options to the user
> - if halt [or reboot] is chosen, a $HOME/.gdm-halt file [or .gdm-reboot]
> file is created
> - in the gdm PostSession script (which is run by gdm as root), the
> existence of those files is tested
> - if one of them exists and if the configuration allows, shutdown
> (or reboot) of the workstation is triggered
I see a problem with this approach: in the case of an NFS-mounted home
directory, several bad things can happen (like root not being able to
delete the user-owned .gdm-* files, or two computers rebooting when they
mount the same NFS directory). Perhaps there should be a mean to
communicate with a precise session only.
Xav
Reply to: