update dbus env on exec-once dispatches

This commit is contained in:
vaxerski 2023-03-05 12:52:57 +00:00
parent 7bae0823c8
commit 4abc608bc0

View file

@ -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) {