Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: [SOLVED] What is the command equivalent to the 'Quit' applet on GNOME panel?

  1. #1
    Join Date
    Mar 2008
    Beans
    721

    [SOLVED] What is the command equivalent to the 'Quit' applet on GNOME panel?

    I want to bind that command to a keyboard shortcut in fluxbox.
    In case it is not clear what applet I'm talking about - it is the default Quit button applet (on the top right corner) in GNOME which brings up a splash screen containing buttons for shutdown, logout, restart etc. When I tried to google for the answer all the the links I got talked about the force quit applet (whose equivalent command is killall).

    I would be very thankful if someone could tell me about the command.

    Hare Krishna
    And pray for me too...

  2. #2
    Join Date
    Mar 2007
    Location
    Madison, OH
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: What is the command equivalent to the 'Quit' applet on GNOME panel?

    Um, I know the command to reboot and shutdown:

    Code:
    $: shutdown -now
    and
    Code:
    $: reboot
    Hope that helped somehow.

    Sean
    Code:
    </Bush><Obama>

  3. #3
    Join Date
    Mar 2008
    Beans
    721

    Re: What is the command equivalent to the 'Quit' applet on GNOME panel?

    shutdown and reboot commands need sudo and gksu shutdown -h now or gksu shutdown -r now are not working for me. But this applet does not need any such privilages plus gives a cool splash with many more options.

    Hare Krishna
    And pray for me too...

  4. #4
    Join Date
    Mar 2008
    Beans
    721

    Re: What is the command equivalent to the 'Quit' applet on GNOME panel?

    Bump!

    Hare Krishna
    And pray for me too...

  5. #5
    Join Date
    Mar 2008
    Beans
    721

    Re: What is the command equivalent to the 'Quit' applet on GNOME panel?

    Bump!

    Hare Krishna
    And pray for me too...

  6. #6
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,059
    Distro
    Ubuntu Development Release

    Re: What is the command equivalent to the 'Quit' applet on GNOME panel?

    Here you go.

    gnome-session-save --kill



  7. #7
    Join Date
    Mar 2008
    Beans
    721

    Re: What is the command equivalent to the 'Quit' applet on GNOME panel?

    Quote Originally Posted by philinux View Post
    Here you go.

    gnome-session-save --kill


    Hey thanks man!

    Just curious :From where did you get that command - did you know it or you searched for it. I searched the hell out of google and still did not find it.

    P.S.: I'm not on ubuntu at present so I'm reserving my official thanks untill I test the command.
    Also the thread will remain unmarked (as solved) untill then

    Hare Krishna
    And pray for me too...

  8. #8
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,059
    Distro
    Ubuntu Development Release

    Re: What is the command equivalent to the 'Quit' applet on GNOME panel?

    I was curious and googled. Since the applet has no properties so you cant see the hidden command.

    Googled - ubuntu keyboard shortcut logout button

    Got this.

    http://ubuntuforums.org/showthread.php?t=329436

    When you run it from the terminal you get the usual shutdown gui.

  9. #9
    Join Date
    Mar 2008
    Beans
    721

    Re: What is the command equivalent to the 'Quit' applet on GNOME panel?

    Quote Originally Posted by philinux View Post
    I was curious and googled. Since the applet has no properties so you cant see the hidden command.

    Googled - ubuntu keyboard shortcut logout button

    Got this.

    http://ubuntuforums.org/showthread.php?t=329436

    When you run it from the terminal you get the usual shutdown gui.
    Well, this is the command and thank you very much for it.

    But unfortunately you cannot bind it to a keyboard shortcut in fluxbox as gnome-session manager is not running there.

    When I tried the command from the terminal (after using the key binding that did not work), I got the output that "Could not find the sessions manager". Then I realised that gnome-sessions-manager does does work in fluxbox (you can do that if you want- but thats not worth it).

    Guess, I'll have to try something with the xfce-sessions-manager (Yeah, I got GNOME, KDE(4.1), XFCE and fluxbox)- just hope the command is similar

    I am marking the thread as solved now (and don't forget the star batch for phil).

    Hare Krishna
    And pray for me too...

  10. #10
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: What is the command equivalent to the 'Quit' applet on GNOME panel?

    Hi - instead of binding to a key I added a sub-menu to my fluxbox menu

    [submenu] (Quit){}
    [exit] (Log out)
    [exec] (Reboot) {sudo /sbin/shutdown -r now} <>
    [exec] (Shutdown) {sudo /sbin/shutdown -h now} <>
    You also need to add to the sudoers

    I added these lines to the end of my sudoers file

    kevin ALL = SHUTDOWN
    kevin ALL = NOPASSWD: SHUTDOWN
    kevin ALL = REBOOT
    kevin ALL = NOPASSWD: REBOOT
    Mayber try binding one of those commands.

Page 1 of 2 12 LastLast

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
  •