Bug 498733 - "Update Issues" dialog can inappropriately appear on launch when internet access is missing
Summary: "Update Issues" dialog can inappropriately appear on launch when internet acc...
Status: CONFIRMED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 6.2.90
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-16 11:10 UTC by John
Modified: 2025-01-25 11:32 UTC (History)
4 users (show)

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


Attachments
First pop-up error showing the a vague message and a hint that most likely will not help fix the problem, covering the background icon and message. (78.30 KB, image/png)
2025-01-16 11:10 UTC, John
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John 2025-01-16 11:10:55 UTC
Created attachment 177402 [details]
First pop-up error showing the a vague message and a hint that most likely will not help fix the problem, covering the background icon and message.

SUMMARY
Discover shows useless and annoying 2-step pop-up messages when internet access is missing

STEPS TO REPRODUCE
1. Remove any wire or device that gives your computer automatic internet access
2. Boot KDE Neon
3. Open Discover

OBSERVED RESULT
Immediately after Discover opens a pop-up window appears complaining about some update process which I never asked for.
It seems that it's assuming I opened it to check / install updates, which I didn't.
The pop-up window has an incomplete / vague message like:
Title: Update Issue
Message: There was an issue during the update or installation process. Please try again later
Button: See Technical details
See the attached printscreen!
The button, when clicked, will show this message:
"Cannot refresh cache whilst offline".
So the first message is completely useless as this one could've been shown from the beginning.
And there are also messages on the background that are partially visible because of the pop-ups.
So you cannot clearly see them until you close the pop-ups.

EXPECTED RESULT
1. Stop making assumptions!
I opened Discover to look which programs are installed and to check if KDE Partition manager is installed.
I haven't asked to check for updates.
If I wanted that I would've clicked on the "Updates" section in the left panel.
But I wouldn't have done even that because I knew I had no internet connection and that would've been useless to do.

2. Just detect that there is no network connectivity as none of the network adapters have any IP address as there is not even LAN connectivity and take the proper decisions based on that.
No updates (manual or automatic) or packages download should be tried when there's no internet connectivity whatsoever.

3. When you need to display some messages, please do it on the background only, so there's no need to waste time to pinpoint a small x button on a pop-up before closing Discover.
If the messages are displayed just on the background, without any pop-ups and Discover is maximized, then we can simply and quickly just go to the the top-right corner and click to close it which is way faster.

4. Stop trying to fetch updates every time Discover is opened and do it only on the "Updates" page.
Opening discover to see which programs are installed, which take the most space or to uninstall some program(s) doesn't need to fetch updates and shouldn't require any internet connectivity whatsoever.

5. When pop-ups are needed, I expect them to have the full message from the beginning, not a useless vague message like:
There are some issues
And then have to click on a button to see what that is actually about.
2-step error messages waste too much time with pinpointing technical details buttons, clicking on them and then pinpointing close buttons and clicking on them too and finally closing Discover.

Also "Try again later" when you have a missing internet connection is useless.
I think it would be better like this:
"Try again when the computer has internet connectivity" or something like that.
This is a user-side problem and unlike with online services and services, where try again later generally fixes it as there are more people wanting to fix that, here I think it would be better to directly tell the users why something is not working and to try later only after that problem is fixed.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.1
Kernel Version: 6.8.0-51-generic (64-bit)
Graphics Platform: Wayland
Hardware: Dell Inspiron 5770

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-01-16 18:35:46 UTC
The popup is for update issues; it's not supposed to appear when you're not actively performing updates. The fact that it appears is the bug.

I can't seem to reproduce it myself on current git master.
Comment 2 Harald Sitter 2025-01-25 11:32:35 UTC
Packagekit gets angry when you query updates without internet. Same with fwupd. Should probably make all this conditional on QNetworkInformation