On Tue, 19 Sep 2000, you wrote:
>now the current policy is to set :
>
>halt to halt (and not poweroff)
>poweroff to poweroff
>
>the best way is to patch end-user programs to poweroff, command line
>user will want to use poweroff command instead of halt
>
>here is the patch for kdm :
>
>--- kdebase/kdm/kdm-config.h.chmou      Sun Jul 30 17:04:45 2000
>+++ kdebase/kdm/kdm-config.h    Tue Sep 19 13:49:44 2000
>@@ -122,7 +122,7 @@
> #endif
> 
> #ifndef SHUTDOWN_CMD
>-#define        SHUTDOWN_CMD    "/sbin/halt"
>+#define        SHUTDOWN_CMD    "/sbin/poweroff"
> #endif
> #ifndef REBOOT_CMD
> #define REBOOT_CMD     "/sbin/reboot"

Just in case it's easier, note that you don't have to patch the source code,
you can simply put
Shutdown=/sbin/poweroff
in the kdmrc file (AFAIK there's already one shipped for Mandrake, otherwise
it comes from kdebase/kdm/config/kdmrc.in)

But thanks for the tip, I was looking for how to do this ;-)

-- 
David FAURE, [EMAIL PROTECTED], [EMAIL PROTECTED]
http://www.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2

Reply via email to