Bug 501795

Summary: Launching Discover from Discover Notifier when updates are available immediately installs them
Product: [Applications] Discover Reporter: Nate Graham <nate>
Component: NotifierAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: aleixpol
Priority: HI Keywords: regression
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2025-03-20 13:47:44 UTC
Git master, Fedora KDE 41, offline updates.


STEPS TO REPRODUCE
1. See DiscoverNotifier in the tray, alerting you to the presence of available updates.
2. Click on it to launch Discover.


OBSERVED RESULT
Discover launches, goes to the updates page *and immediately begins installing updates!*


EXPECTED RESULT
Discover launches, goes to the updates page, and then does nothing until the user initiates an action.


ADDITIONAL INFORMATION
I've had this happen twice now. The first time I second-guessed myself and thought maybe I pressed the "Update" button by accident, but then when it happened a second time, I realized what was going on.

Not reproducible with the Dummy backend. Might be specific to offline updates, or Fedora, or something else.
Comment 1 Nate Graham 2025-03-20 13:54:52 UTC
Additional information:

- Also happens when launching Discover manually and navigating to the Updates page.
- When the unwanted automatic update begins, Discover's main window also immediately unexpectedly closes and update progress is shown in a notification.
Comment 2 Nate Graham 2025-03-21 17:29:12 UTC
Self-confirming due to other reports, and will be fixed with https://invent.kde.org/plasma/discover/-/merge_requests/1064.
Comment 3 Aleix Pol 2025-03-22 00:07:07 UTC
Git commit 6083ae68f504c362434823daa2587ce192e0901b by Aleix Pol.
Committed on 21/03/2025 at 23:44.
Pushed by apol into branch 'master'.

Ensure we only issue headless updates when requested

Don't trust the state of the property before calling the function.

M  +7    -12   discover/qml/UpdatesPage.qml

https://invent.kde.org/plasma/discover/-/commit/6083ae68f504c362434823daa2587ce192e0901b