PDA

View Full Version : [SOLVED] Add Shutdown button to Applications Menu?



bug67
June 2nd, 2012, 04:26 AM
In the Xubuntu top pannel, under my user name menu, is a drop down that has Logout, Restart and Shutdown buttons. However, I constantly find myself drifting over to the Applications Menu on the left to shut the machine down. Probably a left over habbit from my Mac days.

Is there a way to add the Restart and Shutdown buttons (Logout is already there) to the Applications Menu? Thanks.

lightning slinger
June 2nd, 2012, 06:59 AM
You can add Shutdown and/or Restart buttons direct to the top panel!

Right click panel>Panel>Add New Items>Action Buttons, then by right clicking on the button you have added Properties will let you edit what that button does. You can add more than one button to do a different function!

bug67
June 2nd, 2012, 07:03 AM
I don't want them on the panel, I want them in the Applications Menu.

Luckiboy
June 2nd, 2012, 07:18 AM
Alacarte -> New item -> Command = shutdown
Choose a nice icon and you're done ;)

bug67
June 2nd, 2012, 07:38 AM
Alacarte -> New item -> Command = shutdown
Choose a nice icon and you're done ;)

I don't know what "Alacarte" is but I right clicked on the application menu, chose properties > edit menu > add new item, put "shutdown" in the space labeled "command", chose a pretty icon and...my new "shutdown" button in the application menu does nothing!

:popcorn:

Luckiboy
June 2nd, 2012, 08:28 AM
Hmm, try
sudo shutdown -h now?

bug67
June 2nd, 2012, 09:39 AM
Hmm, try
sudo shutdown -h now?

Nothing...

brainwash
June 2nd, 2012, 09:50 AM
Hmm, try
sudo shutdown -h now?

This will only work, if you have edited the sudoers file to allow exection of the shutdown command without being asked for your password. You should use gksudo instead to get a grafical password promt.

On a default Ubuntu installation you can also use dbus to shutdown/restart/suspend/... your system. No password needed.

https://wiki.archlinux.org/index.php/ConsoleKit#Use_dbus_for_power_operations

bug67
June 2nd, 2012, 01:04 PM
So, no one knows? :confused:

Toz
June 3rd, 2012, 03:27 AM
If you right-click the Applications Menu and choose Properties and then click on the "Edit Menu" button, you will startup the menu editor.

Click on "New Item" then add in the following info:

For Shutdown:
Name = Shutdown
Command = xfce4-session-logout --halt
Icon = (select an icon)

For Restart
Name = Restart
Command = xfce4-session-logout --reboot
Icon = (select an Icon)

Click on "Create" to create the entry, then click-drag to move it to the proper location in the menu.

bug67
June 20th, 2012, 08:33 AM
If you right-click the Applications Menu and choose Properties and then click on the "Edit Menu" button, you will startup the menu editor.

Click on "New Item" then add in the following info:

For Shutdown:
Name = Shutdown
Command = xfce4-session-logout --halt
Icon = (select an icon)

For Restart
Name = Restart
Command = xfce4-session-logout --reboot
Icon = (select an Icon)

Click on "Create" to create the entry, then click-drag to move it to the proper location in the menu.

Thanks. That did it. :)

anaconda
June 20th, 2012, 01:35 PM
I just removed the "name" from the panel...
Then the "logout" menu item is automatically added to the menu....

Just like in gnome