|
|
# Requirements
|
|
|
|
|
|
Plasma >= 5.21
|
|
|
Systemd >= 246
|
|
|
|
|
|
# Enabling
|
|
|
|
|
|
kwriteconfig5 --file startkderc --group General --key systemdBoot true
|
|
|
|
|
|
Then reboot.
|
|
|
|
|
|
# Verifying things work
|
|
|
|
|
|
`systemctl --user status`
|
|
|
|
|
|
You should see a bunch of plasma-* services
|
|
|
|
|
|
# Tips
|
|
|
|
|
|
* Create an alias for "systemd --user" you will use it a lot
|
|
|
|
|
|
|
|
|
# Known Caveats
|
|
|
|
|
|
## DrKonqi
|
|
|
|
|
|
drkonqi fails to work nicely with the systemd managed services. Coredumps and crash restarting work but not drkonqi.
|
|
|
|
|
|
Distros should not enable this by default until this is fixed, unless they have their own internal crash solution.
|
|
|
|
|
|
https://phabricator.kde.org/T12867
|
|
|
|
|
|
## Prefixes
|
|
|
|
|
|
If you use a custom prefix, we have to be careful.
|
|
|
|
|
|
systemd is started /very/ early in the login process. Inside pam, before we've got to spawning the Exec line from the desktop session.
|
|
|
|
|
|
If that script adds in additional prefixes we obviously don't search them.
|
|
|
|
|
|
startplasma-dev.sh contains a workaround. Be sure to re-run your ./install-sessions.sh script in plasma-workspace
|
|
|
Even with this fixed it means autostart .desktop files in non /usr locations are not searched.
|
|
|
|
|
|
Long term solutions are on https://phabricator.kde.org/T14135
|
|
|
|
|
|
## kwin_wayland is not systemd managed
|
|
|
|
|
|
It is started, but from the boot script. So to an end user it's still "fine", but it's not ideal.
|
|
|
|
|
|
Challenge is the current code of startplasma some of those "pre-systemd" steps require a working display manager.
|
|
|
It just needs a bit more cleanup and refactor.
|
|
|
|
|
|
## kwallet_pam is apparently broken
|
|
|
|
|
|
See bug report (wherever it is). Almost certainly just bug
|
|
|
|
|
|
# Future work
|
|
|
|
|
|
The units provided now are very barebones aimed at just working with the current system.
|
|
|
Next we can add in some namespaces to provide some security on features that don't need it, OOM hints, as well as potentially hard CPU/memory limits and weights.
|
|
|
|
|
|
If you have ideas and suggestions please let me know. |
|
|
\ No newline at end of file |