Skip to content

Add Install Updates & Shut Down feature to Logout page

Depends on frameworks/breeze-icons!392 (merged)

Also see discover!899 (merged)

Reason for the change

This feature reboots the computer, does an offline update, then shuts down after the offline update has completed, rather than booting into the operating system again.

The idea with this is that you can set your computer to update and shut down and then walk away. Currently, there's no way to do this in Plasma, so you can't leave the computer to update when you're done with it; you have to wait for it to update then turn it off again.

Windows has similar functionality that this emulates, but this does have to reboot the computer into the offline updater, and then shut down from there, which is something that should be changed upstream in PackageKit. Regardless, it's better than what we have now, and it's not a big change to set it to shutdown and then apply updates on the next boot.

Some code modernization and clean-up was also done in shutdowndlg.cpp.

Test plan

  • Update your system's distribution packages in Discover, on a distribution that supports offline updates with PackageKit.
  • Open the Logout screen.
  • Select "Install Updates & Shut Down" or "Install Updates & Restart".

Screenshots or screen recordings

image.pngimage.png

image.png

Bugs fixed

FEATURE: 452820 FIXED-IN: 6.2.0

Edited by Nate Graham

Merge request reports