xfce4-session: halt does not work using sudo

Francois Le Clainche fleclainche at wanadoo.fr
Wed Jan 28 20:09:44 CET 2004

Le lundi 26 janvier 2004 à 17:47, Benedikt Meurer a écrit:

> >Hi,
> Hello Francois,
> >Looks like the halt command from the xfce4-session logout dialog is
> >broken when using sudo /sbin/halt. The same command works from cli.  I
> >receive the "Got no way to shutdown the system. You should ask..." popup
> >all the time.
> >
> >Reboot works.
> >
> >No debug info to provide...
> I'm sorry, but I really don't know what could be wrong here.


Reversing this change in shutdown.c:


solves the problem.

I did not try, but I guess I could grant /me to use sudo /sbin/poweroff
and that it would work with current version? Anyway, got my answer.

F. Le Clainche - PGP key: http://perso.wanadoo.fr/flc.web/pgp.html
http://www.debian.org/ - free, stable, secure operating system
http://www.xfce.org/ - free, lightweight desktop environment

More information about the Xfce4-dev mailing list