Hi,

i am not sure, if this was already on this list, but i tought i share this
with you.

I have gdm running as Login manager and wanted to have the possibility to
halt/reboot my PC when I exit FVWM.

I have achieved this with extending the QuitVerify dlg a bit:

DestroyModuleConfig  MyFvwmForm-QuitVerify: *
*MyFvwmForm-QuitVerify: GrabServer
*MyFvwmForm-QuitVerify: WarpPointer
*MyFvwmForm-QuitVerify: Command     Beep
*MyFvwmForm-QuitVerify: Line        center
*MyFvwmForm-QuitVerify: Text        "Do you really want to logout?"
*MyFvwmForm-QuitVerify: Line        expand
*MyFvwmForm-QuitVerify: Button      quit "Logout" ^M
*MyFvwmForm-QuitVerify: Command     Quit
*MyFvwmForm-QuitVerify: Button      quit "Reboot" ^M
*MyFvwmForm-QuitVerify: Command     !(/usr/bin/gdmflexiserver -a -c 
'SET_LOGOUT_ACTION REBOOT')
*MyFvwmForm-QuitVerify: Command     Quit
*MyFvwmForm-QuitVerify: Button      quit "Halt" ^M
*MyFvwmForm-QuitVerify: Command     !(/usr/bin/gdmflexiserver -a -c 
'SET_LOGOUT_ACTION HALT')
*MyFvwmForm-QuitVerify: Command     Quit
*MyFvwmForm-QuitVerify: Button      restart   "Restart" ^R
*MyFvwmForm-QuitVerify: Command     Restart
*MyFvwmForm-QuitVerify: Button      quit "Cancel" ^[
*MyFvwmForm-QuitVerify: Command     Nop
*MyFvwmForm-QuitVerify: Timeout     20 Quit "Automatic logout will occur in %% 
seconds."

I hope someone has a need for this. Otherwise, please excuse the spam.

Philipp


-- 
If you have problems in Windows: REBOOT
If you have problems in Linux:   BE ROOT

Reply via email to