Make systemd session definition sane using a drop-in
We should have a simple and self-contained way to define which elements should be loaded in a session. With the
.session file defining
RequiredComponents in the
--builtin case, we want something equivalent for the
--systemd case that is also easy to manage.
The idea is simple, create a drop in for
gnome-session@SESSION.target, which pulls in everything wanted. This has some side effects, which are:
- We should have a
.targetfor each desired service.
- We need a single
We also need to fix g-s-d, which appears to be broken currently (the whole idea of "containing" a dependency failure in an extra target seems to not work). This will mean:
- Adding a failure helper into
- Moving from
Note that for consistency it probably makes sense to always have at least one
.target unit, so that the session definition only lists targets rather than a mixture of services and targets.