Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I previously asked a similar question about Unity, but now I'm using (and sticking with) Gnome Classic.

There is this drop down menu in the top right corner of the Gnome panel:

dropdown

When you press "Shut down", you get a dialog window that comes up with the following options:

shutdown options

However, because I probably restart as much or more than shut down, and I never suspend or hibernate, I'd like to move the "Restart" from the dialog window to the drop down.

Is it possible to place a "restart" option right into the dropdown menu?

share|improve this question
    
It's called the Indicator Applet Session (at least in 10.04) –  charlesbridge Oct 26 '11 at 11:11
    
@charlesbridge: I thought the Indicator Applet Session referred to where all the inidcators, like Bluetooth and sound and system messages were displayed. –  Questioner Oct 26 '11 at 13:34
    
Indicator Applet is the container for them. If you open gconf-editor you'll see /apps/indicator-session controls if logout / restart / shutdown options are displayed. –  charlesbridge Oct 26 '11 at 18:51
    
@charlesbridge: Thank you for the tip. I went into gconf-editor, and there were keys marked "suppress-logout", which I took to mean that if they were checked, then that meant the item would not show. However, regardless of checked or not, no editing of the keys made any difference to the drop down menu in question. –  Questioner Oct 27 '11 at 2:35
    
@Dave - the 11.10 indicator-applet is now available in a PPA (askubuntu.com/questions/69377/…) - however - if you use this, the reason why you cant have a restart menu option still applies as per my answer in you previous question... :( –  fossfreedom Oct 29 '11 at 8:53

1 Answer 1

up vote 1 down vote accepted
+50

This is not possible without rewriting the source code for GNOME Panel. The actions in the menu you're referring to are constructed from this list, which does not include a restart item and isn't extensible using configuration files.

If you're feeling ambitious and want to patch in a restart menu item for yourself, creating a panel_session_manager_request_restart analog of this function would be the place to start.

share|improve this answer
    
Unfortunately, I do not have the skills to write my own patch. However, knowing that it's not definitely not possible is as valid an answer, so I guess this answer is the correct one. I'll just have to hope that Gnome-Classic gets as much development attention as the other shells for future bug fixes and feature additions. –  Questioner Nov 3 '11 at 20:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.