Results 1 to 7 of 7

Thread: [SOLVED] command called from System>Shut Down?

  1. #1
    Join Date
    Feb 2006
    Location
    Hatboro, PA
    Beans
    2,555
    Distro
    Ubuntu Development Release

    [SOLVED] command called from System>Shut Down?

    for the life of me, i can't figure this one out on ibex... i know
    "gnome-session-save --gui --kill" worked back in the day, but that only brings-up a log-out dialog. all i'm trying to do is figure-out the command to make the shutdown/reboot/suspend/hibernate dialog pop-up. any help, much appreciated!
    Asus Zenbook: Solus 4.1 GNOME | Dell Latitude: Ubuntu 20.04 Server

  2. #2
    Join Date
    Sep 2008
    Location
    Detroit
    Beans
    57
    Distro
    Ubuntu

    Re: command called from System>Shut Down?

    Try this one: "gnome-session-save --shutdown-dialog". I'm on Hardy, so I can't vouch for it, but according to the this post in http://ubuntuforums.org/showpost.php...90&postcount=7, it works in Intrepid.
    Last edited by Chunky Dunk; November 23rd, 2008 at 06:13 PM.

  3. #3
    Join Date
    Feb 2006
    Location
    Hatboro, PA
    Beans
    2,555
    Distro
    Ubuntu Development Release

    Re: command called from System>Shut Down?

    thanks for the reply, chunk, but all i get is this:
    Code:
    bryan@dell:~$ gnome-session-save --shutdown-dialog
    Unknown option --shutdown-dialog
    Run 'gnome-session-save --help' to see a full list of available command line options.
    Asus Zenbook: Solus 4.1 GNOME | Dell Latitude: Ubuntu 20.04 Server

  4. #4
    Join Date
    Sep 2008
    Location
    Detroit
    Beans
    57
    Distro
    Ubuntu

    Re: command called from System>Shut Down?

    Quote Originally Posted by moore.bryan View Post
    thanks for the reply, chunk, but all i get is this:
    Code:
    bryan@dell:~$ gnome-session-save --shutdown-dialog
    Unknown option --shutdown-dialog
    Run 'gnome-session-save --help' to see a full list of available command line options.
    Hmm... I finally upgraded to Intrepid and tried this out. It worked for me.
    when I type "gnome-session-save --help", I get this:
    Code:
    $ gnome-session-save --help
    Usage:
      gnome-session-save [OPTION...]
    
    Help Options:
      -?, --help                  Show help options
      --help-all                  Show all help options
      --help-gtk                  Show GTK+ Options
    
    Application Options:
      -s, --session-name=NAME     Set the current session name
      --logout                    Log out
      --force-logout              Log out, ignoring any existing inhibitors
      --logout-dialog             Show logout dialog
      --shutdown-dialog           Show shutdown dialog
      --kill                      Kill session
      --gui                       Use dialog boxes for errors
      --silent                    Do not require confirmation
      --display=DISPLAY           X display to use
    It lists the --shutdown-dialog, for me, do you get anything different?

  5. #5
    Join Date
    Feb 2006
    Location
    Hatboro, PA
    Beans
    2,555
    Distro
    Ubuntu Development Release

    Re: command called from System>Shut Down?

    strange... it's there now, but wasn't there before. could it possibly have been a "hiccup" a recent upgrade fixed?
    Asus Zenbook: Solus 4.1 GNOME | Dell Latitude: Ubuntu 20.04 Server

  6. #6
    Join Date
    Feb 2010
    Location
    Montréal
    Beans
    108
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [SOLVED] command called from System>Shut Down?

    FYI in 11.10 it's a new command:

    /usr/lib/indicator-session/gtk-logout-helper --shutdown

    http://askubuntu.com/questions/65965...hutdown-dialog

    OMS!!!

  7. #7
    Join Date
    Feb 2010
    Location
    Montréal
    Beans
    108
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [SOLVED] command called from System>Shut Down?

    Also, it may now be
    Code:
    gnome-session-quit --power-off

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
  •