Re: shutdown from within gnome
On Tue, Aug 12, 2003 at 11:04:07PM -0300, John R Lenton wrote:
> On Tue, Aug 12, 2003 at 07:04:02PM -0400, James Strandboge wrote:
> > On Tue, 2003-08-12 at 13:38, John R Lenton wrote:
> > > WRT the thread on gnome's logout dialog showing reboot etc, it seems
> > > what is needed is e.g. /etc/pam.d/reboot.
> > >
> > > Ref:
> > > https://listman.redhat.com/archives/psyche-list/2003-April/msg00272.html
> >
> > See:
> > http://bugzilla.gnome.org/show_bug.cgi?id=114432
> >
> > for a possible solution (patch is available in the report).
>
> excellent! looking at the code, all I needed to do was
>
> mkdir /var/lock/console
> touch /var/lock/console/john
>
> and it worked!
But you did apply a patch or something, did you not, just setting the
lock file enables the shutdown/reboot menu to come up, but not much
more, in particular, it did not reboot.
That said, why not let gdm hadle this. The above mentioned link mentions
doing gdm.conf handling anyway, so why not have some mechanism that
would tell gdm to either relaunch itself, or go to the reboot/halt
state. Gdm is already capable of doing that, and has the right
permissions for it, since it is running as root anyway.
The only thing needed for this way of handling it, would be to have a
way for the logout dialog to communicate with gdm and to have some way
of controling who has the right to reboot/halt the box.
Friendly,
Sven Luther
Reply to: