login-sessions: Add a script to enable/disable system D-Bus services (a.k.a. KAuth6 fix)
Required to use locally built KAuth helper binaries instead of the ones provided by your OS. Will stop similarly named services in a co-installed Plasma 5 session from working correctly. (Plasma 5 vs. 6 co-installation is not supported anyway.)
Edit: This will not update your polkit authorization rules and action policies. !1715 is a more comprehensive approach to cover those as well. The manual way to fix polkit issues after using this MR's dev-system-services.sh
script would be to manually copy polkit files such as powerdevil/daemon/org.kde.powerdevil.chargethresholdhelper.policy
from your build directory to /usr/share/polkit-1/actions/
. Polkit does not appear to support /usr/local
overrides.
On the upside, action declarations change rarely and if you just want to pick up new behavior of existing defined actions, this MR will do the job.
This is my alternative to MR !3257, which I found to be a dead end. Addresses dev session troubles caused by frameworks/kauth!45 (merged). Use the new script like this:
~/kde/build/plasma-workspace/login-sessions/dev-system-services.sh enable # to prioritize locally built versions
~/kde/build/plasma-workspace/login-sessions/dev-system-services.sh disable # to revert back to what the OS provides
Plus a tiny clean-up commit for install-sessions.sh
.