correct syntax for systemctl

Vladimir-csp 2024-09-15 02:53:02 +03:00
parent 6e65be864d
commit 8fd0dfbd66

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