Does anybody know of a command to get this Gnome shutdown dialog?
Does anybody know of a command to get this Gnome shutdown dialog?
Hmm... already I have this partly figured out.
Its called gtk-logout-helper. Now I just need to figure out a command to make it work.
thats a zenity --question script. i'm guessing something like:
zenity --question --title="Shutdown" --text="are you sure you want to close all programs and shutdown the computer\?" --cancel-label="Cancel" --ok-label="Shutdown"
i use a similar on mine.
Code:#!/bin/bash zenity --question --title="Exit Options" --text="What do you want to do\?" --cancel-label="Shutdown" --ok-label="Log Out" if [ $? = 0 ]; then gnome-session-save --logout-dialog elif [ $? = 1 ]; then gnome-session-save --shutdown-dialog fi exit 0
Last edited by kerry_s; August 24th, 2010 at 06:56 AM.
Its actually the official shutdown dialog from Gnome session indicator applet.
However I have sorted it now! Thanks for trying to help!
Last edited by kerry_s; August 24th, 2010 at 06:57 AM.
Bookmarks