From 8fd0dfbd66e69250834d484f496b0cd676ef4dda Mon Sep 17 00:00:00 2001 From: Vladimir-csp <4061903+Vladimir-csp@users.noreply.github.com> Date: Sun, 15 Sep 2024 02:53:02 +0300 Subject: [PATCH] correct syntax for systemctl --- XDG-Desktop-Portal-configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)