diff --git a/roles/sway/templates/config.j2 b/roles/sway/templates/config.j2 index f3c9957..f588629 100644 --- a/roles/sway/templates/config.j2 +++ b/roles/sway/templates/config.j2 @@ -208,6 +208,7 @@ exec_always bash -c "pgrep -x mako || mako" # xdg-desktop-portal-wlr {% if ansible_service_mgr == "systemd" %} exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE XAUTHORITY +exec source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh {% else %} exec dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway {% endif %}