Updated Systemd integration (markdown)

nobodyatandnothing 2022-06-07 14:45:04 -04:00
parent 96eab43079
commit 9f3cd33283

@ -20,7 +20,7 @@ After=graphical-session-pre.target
In order for the unit file to work properly, add the following lines to either `/etc/sway/config.d/10-systemd` which will include it in the default config, or add them to the end of the user's config file: In order for the unit file to work properly, add the following lines to either `/etc/sway/config.d/10-systemd` which will include it in the default config, or add them to the end of the user's config file:
```bash ```bash
exec "systemctl --user import-environment; systemctl --user start sway-session.target" exec "systemctl --user import-environment {,WAYLAND_}DISPLAY SWAYSOCK; systemctl --user start sway-session.target"
``` ```
This imports all of sway's environment variables into the systemd user manager, allowing its services to access these variables (for example the D-Bus session address), and then starts the sway session user target. This imports all of sway's environment variables into the systemd user manager, allowing its services to access these variables (for example the D-Bus session address), and then starts the sway session user target.