mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 00:11:28 +00:00
Updated Systemd integration (markdown)
parent
7171209083
commit
34b01f25e0
|
@ -44,7 +44,9 @@ Restart=on-failure
|
||||||
RestartSec=1
|
RestartSec=1
|
||||||
TimeoutStopSec=10
|
TimeoutStopSec=10
|
||||||
```
|
```
|
||||||
again, you can choose to put it in `/etc/systemd/user/` or `~/.config/systemd/user/`. This service file will load environment variables from `~/.config/sway/env`, a [KEY=VALUE file](https://www.freedesktop.org/software/systemd/man/systemd.exec.html#EnvironmentFile=). That's a good place to put variables such as `_JAVA_AWT_WM_NONREPARENTING=1` or `CLUTTER_BACKEND=wayland` (note: no need for export there, that is not a shell file]).
|
again, you can choose to put it in `/etc/systemd/user/` or `~/.config/systemd/user/`.
|
||||||
|
|
||||||
|
This service file will load environment variables from `~/.config/sway/env`, a [KEY=VALUE file](https://www.freedesktop.org/software/systemd/man/systemd.exec.html#EnvironmentFile=). That's a good place to put variables such as `_JAVA_AWT_WM_NONREPARENTING=1` or `CLUTTER_BACKEND=wayland` (note: no need for export there, that is not a shell file]).
|
||||||
|
|
||||||
Now, you want your login manager to start the service via systemd, and not sway directly. In order to do that, it's easiest to just create a new wayland session in `/usr/share/wayland-sessions/sway-session.desktop`:
|
Now, you want your login manager to start the service via systemd, and not sway directly. In order to do that, it's easiest to just create a new wayland session in `/usr/share/wayland-sessions/sway-session.desktop`:
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue