Ah, that's useful. I was using the power button on my laptop to get that dialog, but I'd been looking for a way to get an icon on the panel too. All I'd found was a way to do it with D-BUS, e.g.:
if zenity --question --text='Halt?'; then
dbus-send --dest=org.gnome.PowerManager --print-reply \
/org/gnome/PowerManager/Control org.gnome.PowerManager.Control.Shutdown
fi
re: Logout button
Ah, that's useful. I was using the power button on my laptop to get that dialog, but I'd been looking for a way to get an icon on the panel too. All I'd found was a way to do it with D-BUS, e.g.:
if zenity --question --text='Halt?'; then dbus-send --dest=org.gnome.PowerManager --print-reply \ /org/gnome/PowerManager/Control org.gnome.PowerManager.Control.Shutdown fi