Restore offline distribution upgrade functionality to the Logout page
Reason for the change
My previous merge request, !4596 (merged), inadvertently removed the integration for offline updates with distribution upgrades, so it would only ever work for normal package updates. This is a regression, and this merge request brings it back, now with support for shutting down proceeding the update as well.
Test plan
I can confirm that updating normally hasn't regressed, and upgrading the distro uses the exact same mechanism under the hood. See the previous MR.
If someone would like, they can do this:
- Spin up a Fedora 39 VM
- Install the KDE development packages
- Attempt to upgrade to Fedora 40 using
pkcon
- Open the logout greeter and test Update and Shut Down or Update and Restart. You may need to run
~/kde/build/plasma-workspace/bin/ksmserver-logout-greeter
beforehand.
Unfortunately, I don't have the time to do this myself.