mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 09:21:28 +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:
|
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:
|
If classic dbus is used, it has its own separate one:
|
||||||
|
|
||||||
```sh
|
```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)
|
`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