Results 1 to 8 of 8

Thread: Command to get this shutdown dialog?

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Location
    Ireland
    Beans
    838
    Distro
    Ubuntu 17.10 Artful Aardvark

    Command to get this shutdown dialog?

    Does anybody know of a command to get this Gnome shutdown dialog?

    Projects - PhotoFlare Image Editor | Xwii | URT-2D | BHR
    Hardware - System 76 - Galago UltraPro

  2. #2
    Join Date
    Mar 2008
    Location
    Ireland
    Beans
    838
    Distro
    Ubuntu 17.10 Artful Aardvark

    Re: Command to get this 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.
    Projects - PhotoFlare Image Editor | Xwii | URT-2D | BHR
    Hardware - System 76 - Galago UltraPro

  3. #3
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,187

    Re: Command to get this shutdown dialog?

    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.

  4. #4
    Join Date
    Mar 2008
    Location
    Ireland
    Beans
    838
    Distro
    Ubuntu 17.10 Artful Aardvark

    Re: Command to get this shutdown dialog?

    Its actually the official shutdown dialog from Gnome session indicator applet.

    However I have sorted it now! Thanks for trying to help!
    Projects - PhotoFlare Image Editor | Xwii | URT-2D | BHR
    Hardware - System 76 - Galago UltraPro

  5. #5
    Join Date
    Jun 2008
    Location
    Calgary, Alberta
    Beans
    1,128
    Distro
    Ubuntu Studio 18.04 Bionic Beaver

    Re: Command to get this shutdown dialog?

    Quote Originally Posted by fallenshadow View Post
    Its actually the official shutdown dialog from Gnome session indicator applet.

    However I have sorted it now! Thanks for trying to help!
    Would you be willing to share?
    This is a signature. It is original.

  6. #6
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,187

    Re: Command to get this shutdown dialog?

    Quote Originally Posted by sydbat View Post
    Would you be willing to share?
    yeap, he's right.

    the command:
    Code:
    /usr/lib/indicator-session/gtk-logout-helper
    Application Options:
    -l, --logout Log out of the current session
    -s, --shutdown Switch off the entire system
    -r, --restart Restart the system
    Last edited by kerry_s; August 24th, 2010 at 06:57 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •