I want to create a shutdown icon for the launcher in 13.04. In former versions of Ubuntu I used this desktop file and put it in the launcher:
.local/share/applications/indicator-session-shutdown.desktop
[Desktop Entry]
Name=Shut Down
TryExec=/usr/lib/indicator-session/gtk-logout-helper
Exec=/usr/lib/indicator-session/gtk-logout-helper --shutdown
Icon=system-shutdown
Terminal=false
Type=Application
OnlyShowIn=Unity;
Categories=System;
Version=1.0
X-Ubuntu-Gettext-Domain=indicator-session
I wonder if
/usr/lib/indicator-session/gtk-logout-helper --shutdown
is still the correct command in 13.04.
Here is a screenshot with old shutdown dialog:
Here is a screenshot with new shutdown dialog:
Best Answer
Try:
gnome-session-quit
For more options:
According to the manual, the following options are supported:
Or looking at dbus-monitor, this is the command: