Updated Systemd integration (markdown)

nobodyatandnothing 2022-06-07 14:28:56 -04:00
parent a5431b6131
commit 96eab43079

@ -1,8 +1,4 @@
> # :warning: Unsupported instructions > :information_source: This guide is community-maintained. Please don't open issues if it doesn't work.
>
> **Running Sway as a systemd service is not supported**, nor recommended, nor required for anything. It may break your setup if you're not familiar enough with systemd.
>
> This guide is community-maintained. Please don't open issues if it doesn't work.
## Managing user applications with systemd ## Managing user applications with systemd
@ -52,9 +48,11 @@ journalctl --user --identifier sway
Using `--follow` and `--this-boot` might be handy. [`journalctl(1)`](https://www.freedesktop.org/software/systemd/man/journalctl.html) for details. Using `--follow` and `--this-boot` might be handy. [`journalctl(1)`](https://www.freedesktop.org/software/systemd/man/journalctl.html) for details.
## Running sway itself as a --user service ## Running sway itself as a --user service
> # :warning: Unsupported instructions
It is not recommended that you run `sway` as a systemd service. >
See [#5160](https://github.com/swaywm/sway/issues/5160) for finer details on some discussion around this. > **Running Sway as a systemd service is not supported**, nor recommended, nor required for anything. It may break your setup if you're not familiar enough with systemd.
>
> See [#5160](https://github.com/swaywm/sway/issues/5160) for finer details on some discussion around this.
Place the following unit file either at `~/.config/systemd/user/sway.service` or `/etc/systemd/user/sway.service`: Place the following unit file either at `~/.config/systemd/user/sway.service` or `/etc/systemd/user/sway.service`: