diff options
author | vaxerski <[email protected]> | 2023-03-24 03:21:38 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-03-24 03:21:38 +0000 |
commit | a5a0434fffcd1b691506f694e5e9f9091b859a85 (patch) | |
tree | 698f1c6d07ae0e5040e7ef5d05cb53ad5b423c52 | |
parent | 463690a27ac9c921d34dad7169a3d2c8cea5b46f (diff) | |
download | Hyprland-a5a0434fffcd1b691506f694e5e9f9091b859a85.tar.gz Hyprland-a5a0434fffcd1b691506f694e5e9f9091b859a85.zip |
dbus: don't update vars in nests
-rw-r--r-- | src/config/ConfigManager.cpp | 9 |
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; |