From 63841c8aac8c6bae7ed8825939d19471943313b9 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 15 Apr 2023 19:03:09 +0000 Subject: Disable systemctl when built without systemd support (#2066) /bin/sh: systemctl: not found --- src/Compositor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 21229cb2..57d19ee4 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -443,7 +443,9 @@ void CCompositor::startCompositor() { if (m_sWLRSession /* Session-less Hyprland usually means a nest, don't update the env in that case */ && fork() == 0) execl( "/bin/sh", "/bin/sh", "-c", +#ifdef USES_SYSTEMD "systemctl --user import-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP && hash dbus-update-activation-environment 2>/dev/null && " +#endif "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE", nullptr); -- cgit v1.2.3