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

Re: shutdown from within gnome



On Wed, 2003-08-13 at 11:38, John R Lenton wrote:
> On Wed, Aug 13, 2003 at 04:04:40PM +0200, Sven Luther wrote:
> > On Wed, Aug 13, 2003 at 09:38:29AM -0300, John R Lenton wrote:
> > > 
> > > but now it's only "how do I get reboot to reboot" and not "how do I
> > > get the logout dialog to ask for reboot". I know how to handle the
> > > first, I didn't know how to handle the second.
> > 
> > And how do you do that ? I think it is the more difficult and
> > problematic of the two.
> 
> you configure gnome-session with --with-halt-command=userhalt, and
> make userhalt a setuid root program that calls /sbin/halt.

The problem is that the /var/run/console stuff is redhat specfic (I
haven't looked at it, but based on the begin of this thread, it is
pam.d/reboot).  

Once you know what redhat did, this certainly is easy, I am just trying
to bring us back to the point that the bug report referenced is a
distribution agnostic way for gnome-session to handle the shutdown
options.  Of course, the distribution still has to come up with the
method of authenticating the user.

Jamie

-- 
Email:        jstrand1@rochester.rr.com
GPG/PGP ID:   26384A3A
Fingerprint:  D9FF DF4A 2D46 A353 A289  E8F5 AA75 DCBE 2638 4A3A



Reply to: