summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-04 11:30:25 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-04 11:30:25 +0000
commit34ad837fd93a55c2a234381c9077fba1c2fd154c (patch)
treefb5ac3959cedb5e45fc56227675f74d66a744e2e /src/Compositor.cpp
parente7961576721f1bd7cc976d14c6dccaddf6c1a69f (diff)
don't update the env in session-less hl
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index b6f2e2d8..70249ef3 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -340,7 +340,7 @@ void CCompositor::startCompositor() {
signal(SIGPIPE, SIG_IGN);
- if (fork() == 0)
+ 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", "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE", nullptr);
Debug::log(LOG, "Running on WAYLAND_DISPLAY: %s", m_szWLDisplaySocket);