diff --git a/XDG-Desktop-Portal-configuration.md b/XDG-Desktop-Portal-configuration.md index 9c7108d..688b856 100644 --- a/XDG-Desktop-Portal-configuration.md +++ b/XDG-Desktop-Portal-configuration.md @@ -11,12 +11,12 @@ See [Systemd and dbus activation environments](https://github.com/swaywm/sway/wi If dbus implementation is `dbus-broker`, systemd activation environment is used: ``` -exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=${XDG_CURRENT_DESKTOP:-sway:wlroots} +exec systemctl --user set-environment "WAYLAND_DISPLAY=${WAYLAND_DISPLAY}" "XDG_CURRENT_DESKTOP=${XDG_CURRENT_DESKTOP:-sway:wlroots}" ``` If classic dbus is used, it has its own separate one: ```sh -exec dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=${XDG_CURRENT_DESKTOP:-sway:wlroots} +exec dbus-update-activation-environment WAYLAND_DISPLAY "XDG_CURRENT_DESKTOP=${XDG_CURRENT_DESKTOP:-sway:wlroots}" ``` `XDG_CURRENT_DESKTOP` should be passed through in case it was set before sway (i.e. by a Display Manager)