Bug 507227 - Before the package update, wrong sequence of restart and update is displayed
Summary: Before the package update, wrong sequence of restart and update is displayed
Status: RESOLVED NOT A BUG
Alias: None
Product: Discover
Classification: Applications
Component: Updates (other bugs)
Version First Reported In: 6.4.3
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-19 12:01 UTC by Christian Janoff
Modified: 2025-09-23 17:45 UTC (History)
5 users (show)

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


Attachments
Screenshot showing the actual behaviour (87.53 KB, image/png)
2025-07-19 12:01 UTC, Christian Janoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Janoff 2025-07-19 12:01:44 UTC
Created attachment 183335 [details]
Screenshot showing the actual behaviour

SUMMARY
After discover has downloaded update packages and a restart was requested by the users, misleading texts are displayed indicating that the system will first update the packages and then reboot.

While it is the opposite: First it will restart and then it will update the packages.

STEPS TO REPRODUCE
1. Let discover have downloaded some updates
2. Press the "Restart and Install Updates" button (or restart from the application launcher menu)
3. -

OBSERVED RESULT

Desktop background is blurred and a countdown text is displayed (sorry, my system uses German language):

1) "Installation der Softwareaktualisierungen und Neustart in 26 Sekunden" (Update of the software packages and restart in 26 seconds)

2) Also 3 options are displayed:

Option 1: "Aktualisierungen installieren und neu starten" (Install updates and restart)
Option 2: "Jetzt neu starten" (Restart now)
Option 3: "Abbrechen" (Cancel)


- The countdown text is misleading (I guess it's the same in the original English text): It states that updates would be installed and THEN a restart will occur. But it's the opposite.

- Same for the option 1 button text.

EXPECTED RESULT
"Update and restart" texts correspond to the actual behaviour of the system.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Fedore Linux 42 (KDE Plasma Desltop Edition) (Wayland)
KDE Plasma Version: 
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
Comment 1 TraceyC 2025-07-23 02:17:24 UTC
I confirm this behavior on Fedora 42 and git-master. The behavior is the same on any distro.
However - what I observe is that updates are installed before the restart, so the text in Discover is incorrect.

Click Restart, click "Install updates and restart"
Observe:
"Installing Updates.... Do not turn off your computer" 
Boot screen with list of kernels
System starts


Also, notice that these two strings have contradictory text:
In Discover - "Restart and Install Updates" button
In the Restart screen - "Installation der Softwareaktualisierungen und Neustart in 26 Sekunden" (Update of the software packages and restart in 26 seconds)
"Install updates and restart"

The language in Discover is incorrect, the language in the Restart screen is correct.
It seems like the string in Discover needs to be updated.
Comment 2 TraceyC 2025-07-23 02:31:15 UTC
Correction, after watching another update

Click Restart, click "Install updates and restart"
Observe:
System is restarted
"Installing Updates.... Do not turn off your computer" 
Boot screen with list of kernels
System starts

Perhaps they are both wrong in different ways.
Comment 3 Harald Sitter 2025-07-26 17:25:22 UTC
Yeah, so that is probably a problem in the logout dialog itself. Discover doesn't really do anything but start the procedure.
Comment 4 Nate Graham 2025-09-23 17:45:06 UTC
This isn't something KDE controls; the way this method of updating works is controlled by the PackageKit library. So we can't change that.

What we can change is how it's presented. If you want to get really technical, what actually happens is:
- restart
- install updates
- restart again

Discover says "install updates and restart"; the logout screen says "Restart and Install Updates"; both are right, and in practice, it's a distinction without a difference.