This is an automated email from the git hooks/post-receive script.

git pushed a commit to reference refs/pull/27/head
in repository enlightenment.

View the commit online.

commit 17425c1327d8e977444076c5d221c53a85b14e57
Author: kikadf <[email protected]>
AuthorDate: Mon Nov 7 06:05:07 2022 -0800

    Fix hibernate command on OpenBSD
---
 src/bin/system/e_system_power.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/bin/system/e_system_power.c b/src/bin/system/e_system_power.c
index 9b44bc4db..b49ec3a14 100644
--- a/src/bin/system/e_system_power.c
+++ b/src/bin/system/e_system_power.c
@@ -90,9 +90,12 @@ _power_suspend_init(void)
 static void
 _power_hibernate_init(void)
 {
-#if defined (__FreeBSD__) || defined (__OpenBSD__)
+#if defined (__FreeBSD__)
    if (ecore_file_app_installed("acpiconf"))
      _cmd_hibernate = strdup("acpiconf -s4");
+#elif defined (__OpenBSD__)
+   if (ecore_file_app_installed("ZZZ"))
+     _cmd_suspend = strdup("ZZZ");
 #else
    if (ecore_file_app_installed("systemctl"))
      _cmd_hibernate = strdup("systemctl hibernate");
@@ -106,7 +109,8 @@ _power_hibernate_init(void)
      _cmd_hibernate = strdup("/etc/acpi/pm-hibernate");
 #endif
    // linux systemd: PATH/systemctl hibernate
-   // bsd: acpiconf -s4
+   // FreeBSD: acpiconf -s4
+   // OpenBSD: ZZZ
    // if exist:
    //    PATH/hibernate.sh
    //    /etc/acpi/hibernate.sh force

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to