mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: enlightenment: Use 'loginctl' for system actions.
* gnu/packages/enlightenment.scm (enlightenment)[arguments]: Use 'loginctl' functions when powering off, sleeping, rebooting or suspending the system.
This commit is contained in:
parent
f55aa0c7b7
commit
440b162900
1 changed files with 4 additions and 3 deletions
|
@ -286,9 +286,10 @@ (define-public enlightenment
|
|||
(("/bin/mount") (string-append utils "/bin/mount"))
|
||||
(("/bin/umount") (string-append utils "/bin/umount"))
|
||||
(("/usr/bin/eject") (string-append utils "/bin/eject"))
|
||||
; TODO: Replace suspend and hibernate also.
|
||||
(("/sbin/shutdown -h now") "/run/current-system/profile/sbin/halt")
|
||||
(("/sbin/shutdown -r now") "/run/current-system/profile/sbin/reboot"))
|
||||
(("/etc/acpi/sleep.sh force") "/run/current-system/profile/bin/loginctl suspend")
|
||||
(("/etc/acpi/hibernate.sh force") "/run/current-system/profile/bin/loginctl hibernate")
|
||||
(("/sbin/shutdown -h now") "/run/current-system/profile/bin/loginctl poweroff now")
|
||||
(("/sbin/shutdown -r now") "/run/current-system/profile/bin/loginctl reboot now"))
|
||||
#t))))))
|
||||
(native-inputs
|
||||
`(("gettext" ,gettext-minimal)
|
||||
|
|
Loading…
Reference in a new issue