summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-03-05 12:52:57 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-03-05 12:53:02 +0000
commit4abc608bc025002e0627a9840c2fc0a4e3c59cab (patch)
tree411b5cf53af801dcd90e1f6ce4c9d2172a38180c /src/config/ConfigManager.cpp
parent7bae0823c84b225ef2bb6357c43391e72e86a685 (diff)
update dbus env on exec-once dispatches
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index d1b84cde..94e09c70 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -1608,6 +1608,12 @@ void CConfigManager::dispatchExecOnce() {
if (firstExecDispatched || isFirstLaunch)
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");
+
firstExecDispatched = true;
for (auto& c : firstExecRequests) {