Bug 491693 - When adding a Flatpak new repo via a flatpakref file from a repo not already on the system, Discover presents it as an Error
Summary: When adding a Flatpak new repo via a flatpakref file from a repo not already ...
Status: RESOLVED UPSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 6.1.3
Platform: unspecified Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-14 00:58 UTC by Wing Hong Chan
Modified: 2024-09-19 13:21 UTC (History)
2 users (show)

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


Attachments
Screenshot of said "Error" dialog (135.47 KB, image/png)
2024-08-14 00:58 UTC, Wing Hong Chan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wing Hong Chan 2024-08-14 00:58:00 UTC
Created attachment 172603 [details]
Screenshot of said "Error" dialog

SUMMARY
When I open a .flatpakref in Discover and try to install the app (and it’s my first time installing an app from the repo), Discover shows an Error message to say that it’s adding a remote repository. The problem is, the task of adding a repo is not an error so the dialog should not read “Error” at the top. 

STEPS TO REPRODUCE
1. Download the .flatpakref for Obliviate (from Elementary AppCenter) by clicking “Download as Flatpak” on https://appcenter.elementary.io/com.github.elfenware.obliviate/
2. Open the .flatpakref file using Discover. 
3. Click “Install from AppCenter”. 

OBSERVED RESULT
Error message appears, but once you authenticate (if necessary, to let your computer add the repo) the app installs successfully.

EXPECTED RESULT
Perhaps the message should be shown in a Kirigami passive notification, or at least something less error-y than a dialog that says “Error”. 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Fedora Linux 40
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
I left the platform unspecified because I'm not sure. I'm just using Discover the way it is included with Fedora KDE.
Comment 1 Nate Graham 2024-08-14 21:46:12 UTC
So to be clear, it successfully added the repo?
Comment 2 Wing Hong Chan 2024-08-14 22:12:45 UTC
(In reply to Nate Graham from comment #1)
> So to be clear, it successfully added the repo?

Yes it successfully added the AppCenter repo and installed Obliviate.
Comment 3 Nate Graham 2024-08-21 15:38:07 UTC
Thanks, can reproduce the issue.
Comment 4 Nate Graham 2024-09-19 13:21:44 UTC
This seems to be fixed for me now; I guess flatpak itself was at fault, and that got fixed recently.