Le 07.09.02, Rodolphe Pelloux-Prayer a tapot� : | bonjour,
Bonjour. | la question est dans le sujet ! GRMBL ! | pour �tre plus pr�cis, je voudrais pouvoir �teindre le pc � partir de | wdm et de pr�f�rence sans avoir � entrer un | login Dans /etc/X11/xdm/Xsetup_0 : /usr/bin/wish <<EOF & wm geometry . -0-0 button .halt -text Arr�t -font 7x13 -fg ${COLOR} -bg black \ -highlightcolor black -high \ lightbackground DeepSkyBlue -borderwidth 0 -activeforeground black \ -activebackground ${COLOR} -command {exec shutdown -h now} button .reboot -text Reboot -font 7x13 -fg ${COLOR} -bg black \ -highlightcolor black -high \ lightbackground DeepSkyBlue -borderwidth 0 -activeforeground black \ -activebackground ${COLOR} -command {exec shutdown -r now} pack .reboot .halt -side left EOF echo $! > /var/run/xdmbuttons.pid Et dans /etc/X11/xdm/Xstartup_0 kill `cat /var/run/xdmbuttons.pid` rm /var/run/xdmbuttons.pid Sachant qu'il faut avoir install� tcl/tk. | merci Avec plaisir. Thomas -- NON-FLAMMABLE, IS NOT A CHALLENGE NON-FLAMMABLE, IS NOT A CHALLENGE NON-FLAMMABLE, IS NOT A CHALLENGE -+- Bart Simpson on chalkboard in episode BABF13