mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 14:45:59 +01:00
update dbus env on exec-once dispatches
This commit is contained in:
parent
7bae0823c8
commit
4abc608bc0
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue