[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [desktop] enabling gnome-session reboot and halt options on logout

On Thu, Mar 06, 2003 at 09:01:41AM -0500, christophe barbe wrote:
> On Wed, Mar 05, 2003 at 10:29:45PM -0500, Matthew P. McGuire wrote:
> > Although I don't know how it works, I will point out that wdm has the 
> > Halt, Reboot, and Exit login functions which do exactly what appears to 
> > be desired. As it turns out only root can actuallly use any of the three 
> > options. I do not know if it can be modified to allow a group or list of 
> > users to do the same. But the underlying code could prove useful.
> This is not what we are looking for. Gdm and friends support halt/reboot
> even when you are not root (if you configure them this way). From *dm, it
> is easier because *dm has the privileges to use shutdown.
> The desired feature is to be able to cleanly shutdown from the logout
> dialog box of gnome-session. First gnome-session is running with the
> privileges of the users. Also it can't be compared to calling 'shutdown
> -h now' because when you logout cleanly, gnome-session does task that it
> can't do otherwise.

Couldn't gnome-session be kludged to communicate to gdm that the user
requested a reboot or shutdown, then after gnome-session has exited
properly, gdm performs the requested action?!

It's not particularly beautiful, but it'd probably work.


/David Weinehall
 /> David Weinehall <tao@acc.umu.se> /> Northern lights wander      <\
//  Maintainer of the v2.0 kernel   //  Dance across the winter sky //
\>  http://www.acc.umu.se/~tao/    </   Full colour fire           </

Reply to: