Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#62012 - [sway] RFE: systemd --user integration

Attached to Project: Community Packages
Opened by Damjan Georgievski (damjan) - Thursday, 14 March 2019, 17:25 GMT
Last edited by Alexander F. Rødseth (xyproto) - Monday, 22 April 2019, 23:26 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Jerome Leclanche (Adys)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

The idea is to support for systemd --user sessions when running sway.
We need to add /usr/lib/systemd/user/sway-session.target

More info is here https://github.com/swaywm/sway/wiki/Systemd-integration

there are two options here, one is for sddm/gdm/… to start sway directly (as now), and then sway would start its session,
or,
the login manager can start a shell script that imports env vars for the session, and runs sway as a --user service itself.
sway.service has a dependency on sway-session.target.

I'm running the second option, so that I also get the output from sway in the user journal.

ps.
this has been suggested to upstream in a pull request, but they seem to have unreasonable opinions on systemd,
and suggested that distributions should implement it themselves.
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Monday, 22 April 2019, 23:26 GMT
Reason for closing:  No response
Comment by Alexander F. Rødseth (xyproto) - Monday, 18 March 2019, 10:34 GMT
Hi, thanks for reporting, I'll check out the sway + systemd integration.
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 26 March 2019, 11:19 GMT
I tried adding the examples from the sway wiki and launching sway with systemctl --user, but I got error messages about capabilities in connection with wlroots. Will have to investigate some more.

If you have specific files and commands that made it work for you, that could be helpful. Did you just follow the instructions on the sway wiki, using the sway and wlroots packages from [community]?
Comment by Damjan Georgievski (damjan) - Tuesday, 26 March 2019, 12:28 GMT
Thanks for doing this. I use the second method, but I start sway from sddm, and it just works. How did you start it?
Comment by Alexander F. Rødseth (xyproto) - Friday, 29 March 2019, 12:53 GMT
Please provide a working example of how to use systemd user services to start sway. So far, I have not been able to see it work, on my machine. If you don't use systemd user files, but launch it from sddm, I'm not quite sure why the systemd user files are needed. It would be nice to provide several different ways to start sway, though.

Do you have a working example of using systemd user services for launching sway?

Loading...