From 34b01f25e04cf411ead28b3ba7a3204d13d957ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Tue, 5 Feb 2019 23:36:34 +0100 Subject: [PATCH] Updated Systemd integration (markdown) --- Systemd-integration.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Systemd-integration.md b/Systemd-integration.md index 3d06f8a..17f3c8b 100644 --- a/Systemd-integration.md +++ b/Systemd-integration.md @@ -44,7 +44,9 @@ Restart=on-failure RestartSec=1 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`: ```