dbus: don't update vars in nests

This commit is contained in:
vaxerski 2023-03-24 03:21:38 +00:00
parent 463690a27a
commit a5a0434fff

View file

@ -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;