Effectively this requires a KIO change from calling QProcess(someExec)
to calling systemd-run someExec (or the equivalent DBus call)
Reasons:
- everything will work at a cgroup level instead of PIDs which is more useful for a user
- will allow better grouping in our taskmanager
- resource limits and quotas on a per-app basis
- will allow freezer controllers for the phone
- allows us to use all sorts of other features (private /tmp, read only home etc)
- We use a synchronised launch env
- systemd will ship 3 slices, background services, apps, and "chrome" (i.e plasmashell) this will allow "nice" settings to be prioritised to apps by default
- allows for a cleaner shutdown of 3rd party background services
Gnome libs are now also doing this.
During a FOSDEM meeting we agreed on a pseudo standard for which slices and a cgroup naming scheme. That scheme being:
I have a patch ready.
(obviously opt in)