mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 23:41:27 +00:00
correct syntax for systemctl
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue