#dbus #machine #reboot #interface #logind #service #poweroff

login-poweroff-reboot

Poweroff or reboot machine using dbus interface logind

8 releases

new 0.4.5 Apr 20, 2024
0.4.4 Feb 7, 2024
0.4.0 Sep 4, 2023
0.3.0 Aug 31, 2023
0.2.4 Aug 31, 2023

#255 in Authentication

Download history 2/week @ 2024-02-05 5/week @ 2024-02-19 12/week @ 2024-02-26 37/week @ 2024-04-01 115/week @ 2024-04-15

152 downloads per month
Used in lipl-display-slint

MIT license

4KB
58 lines

login-poweroff-reboot

This library create exports two functions, one for rebooting the machine, one for powering off the machine. It use dbus messages for logind under the hood. Make sure system-logind.service is running.

Dependencies

~6MB
~133K SLoC