summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-04 10:37:14 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-04 10:37:14 +0000
commit9aad35278982c52cf506856a87186390977d21d1 (patch)
tree5ced13e970ec62d1caf8579b0c19719515da6440 /src/Compositor.cpp
parentce8c20c1edea8bda88d12dcfafafe253832d361f (diff)
automatically update dbus environment on start
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 7c6e915b..b6f2e2d8 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -340,6 +340,9 @@ void CCompositor::startCompositor() {
signal(SIGPIPE, SIG_IGN);
+ if (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);
if (!wlr_backend_start(m_sWLRBackend)) {