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

login-poweroff-reboot

Poweroff or reboot machine using dbus interface logind

8 releases

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

#272 in Authentication

Download history 2/week @ 2024-02-07 2/week @ 2024-02-14 8/week @ 2024-02-21 7/week @ 2024-02-28 12/week @ 2024-03-27 25/week @ 2024-04-03 121/week @ 2024-04-17 8/week @ 2024-04-24

129 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
~132K SLoC