I use the icon in the upper right corner of GNOME Shell to shut down my system.
Which command is used to shutdown the system?
halt
shutdown -h now
- Something completely different?
I use the icon in the upper right corner of GNOME Shell to shut down my system.
Which command is used to shutdown the system?
halt
shutdown -h now
dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true
For understanding
man systemd-logind
systemd-logind is a system service that manages user logins. It is
responsible for:
· Keeping track of users and sessions, their processes and their idle
state
· Providing PolicyKit-based access for users to operations such as
system shutdown or sleep
· Implementing a shutdown/sleep inhibition logic for applications
· Handling of power/sleep hardware keys
· Multi-seat management
· Session switch management
· Device access management for users
· Automatic spawning of text logins (gettys) on virtual console
activation and user runtime directory management
Now read to the systemd/logind wiki http://www.freedesktop.org/wiki/Software/systemd/logind/
dbus
. The problem is that it changes with gnome versions and underneath system and so on. Maybe http://ubuntuforums.org/showthread.php?t=1660987 can help. You can use http://vidner.net/martin/software/dbus-spy/ to see what's happening... – Rmano Jun 02 '15 at 17:51