Bug 501795 - Launching Discover from Discover Notifier when updates are available immediately installs them
Summary: Launching Discover from Discover Notifier when updates are available immediat...
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: Notifier (show other bugs)
Version: master
Platform: Other Linux
: HI major
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-03-20 13:47 UTC by Nate Graham
Modified: 2025-03-22 02:35 UTC (History)
1 user (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 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