Bug 496843 - Inline update and shutdown option after updates have completed
Summary: Inline update and shutdown option after updates have completed
Status: CONFIRMED
Alias: None
Product: Discover
Classification: Applications
Component: Updates (other bugs)
Version First Reported In: 6.2.3
Platform: Neon Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-29 17:50 UTC by TrianguloY
Modified: 2024-12-13 20:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TrianguloY 2024-11-29 17:50:51 UTC
SUMMARY
On discover since plasma 6.2.0, in the Updates menu, after applying 'Update all' you now have the option to apply updates and shutdown. This option is only shown while the updates are being 'prepared', and it's not possible after that.


STEPS TO REPRODUCE
1. Open Discover, and go to the Updates section
2. Press on 'Update All' (you will need to have an update for it to appear)
3. Wait for the updates to finish preparation.

OBSERVED RESULT
The screen says: "Restart the system to complete the update process" and a single button is shown "Restart to Install Updates Now".
https://imgur.com/a/cKhoJl6

EXPECTED RESULT
The screen says something like: "Restart or shutdown the system to complete the update process" and two buttons are shown like: "Restart to Install Updates Now" and "Install Updates and Shutdown Now" (exact strings may need to be changed)


SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.2
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.8.0-49-generic (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 5 3400G with Radeon Vega Graphics
Memory: 13.6 GiB of RAM
Graphics Processor: AMD Radeon Vega 11 Graphics


ADDITIONAL INFORMATION
While the updates are being prepared (between steps 2 and 3 above), you have an option at the bottom to shutdown on completion. This option was introduced in plasma 6.2.0. (I'm unable to create a screenshot, but here is one from the internet)
https://pointieststick.com/wp-content/uploads/2024/08/shutdown-after-update-in-discover.png
After the preparation is complete, the screen changes to the one above, and the option to update and shutdown disappears.
Comment 1 John Kizer 2024-12-05 07:16:13 UTC
Hi - just so you know, after Discover prepares updates, you are still able to install updates and shut down by going to go Shut Down normally (ex. from the Kickoff application launcher menu) - you'll then see the option presented on this page: https://pointieststick.com/2024/08/23/this-week-in-kde-per-monitor-brightness-control-and-update-then-shut-down/ in this picture: https://pointieststick.com/wp-content/uploads/2024/08/shutdown-after-update-on-the-logout-screen.png?w=1024

I do think it's a fair wishlist item to have Discover prompt you about the possibility of that action on its own screen, though.
Comment 2 TrianguloY 2024-12-05 16:52:45 UTC
Thanks for the confirmation.

You are right, the shutdown confirmation screen does in fact allow you to trigger the 'update and shutdown' feature...but only if you have the 'ask for confirmation setting'! (Under System settings > Session > Desktop session) https://imgur.com/a/1dMqI5u.
I think that's enabled by default, but if you disable it, then the only way to trigger the shutdown is from the start menu, where that option is not present (at least in the 'Application Launcher' widget).
Or is there a way to trigger the confirmation shutdown dialog somehow?
Comment 3 John Kizer 2024-12-05 17:46:01 UTC
(In reply to TrianguloY from comment #2)
> Thanks for the confirmation.
> 
> You are right, the shutdown confirmation screen does in fact allow you to
> trigger the 'update and shutdown' feature...but only if you have the 'ask
> for confirmation setting'! (Under System settings > Session > Desktop
> session) https://imgur.com/a/1dMqI5u.
> I think that's enabled by default, but if you disable it, then the only way
> to trigger the shutdown is from the start menu, where that option is not
> present (at least in the 'Application Launcher' widget).
> Or is there a way to trigger the confirmation shutdown dialog somehow?

Hmm, you *should* be able to workaround that using either a Lock/Logout widget or by pressing Ctrl+Alt+Del, both of which should present the confirmation-style screen with all of the available options?
Comment 4 TrianguloY 2024-12-05 18:02:31 UTC
> Hmm, you *should* be able to workaround that using either a Lock/Logout
> widget or by pressing Ctrl+Alt+Del, both of which should present the
> confirmation-style screen with all of the available options?

Oh, that indeed works. The widget is strange because it contains the same two lock/logout buttons as the application launcher, but the widget logout button does show the confirmation screen (the one on the application launcher does not).
The control+alt+del shortcut also works, I don't know how I missed that one. I'll be using that from now on (until discover provides it directly).

Thank you!