summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-03-24 03:21:38 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-03-24 03:21:38 +0000
commita5a0434fffcd1b691506f694e5e9f9091b859a85 (patch)
tree698f1c6d07ae0e5040e7ef5d05cb53ad5b423c52 /src/config/ConfigManager.cpp
parent463690a27ac9c921d34dad7169a3d2c8cea5b46f (diff)
dbus: don't update vars in nests
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 0aad4867..94e49d20 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -1686,10 +1686,11 @@ void CConfigManager::dispatchExecOnce() {
return;
// update dbus env
- handleRawExec(
- "",
- "systemctl --user import-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP && hash dbus-update-activation-environment 2>/dev/null && "
- "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE");
+ if (g_pCompositor->m_sWLRSession)
+ handleRawExec(
+ "",
+ "systemctl --user import-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP && hash dbus-update-activation-environment 2>/dev/null && "
+ "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE");
firstExecDispatched = true;