Ask user to confirm
jasper at moongroup.com
Mon Jan 19 11:04:34 CET 2004
Matthias Fechner wrote:
>if i write my own menu.xml, whould it be possible the display a box,
>on which the user can confirm or decline something, e.g.
><menu name="Shutdown" cmd="sudo halt">
>If the user click on Shutdown, he will be asked if he is sure.
>Thanks for any hints.
The only way I can think of is to make a script that uses zenity or
Xdialog to ask for confirmation.
If you use xfce4-session, you can simply use the 'quit' builtin command
and the session manager will take care of everything.
More information about the Xfce