Bug 500133 - Discover search does not respect Default Source setting and prefers Flatpak
Summary: Discover search does not respect Default Source setting and prefers Flatpak
Status: CONFIRMED
Alias: None
Product: Discover
Classification: Applications
Component: discover (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-15 14:01 UTC by cwo
Modified: 2025-03-09 20:35 UTC (History)
3 users (show)

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


Attachments
discover prefers flatpak (355.58 KB, image/png)
2025-02-15 14:01 UTC, cwo
Details
Discover settings showing that Flatpak is not the default source (247.95 KB, image/png)
2025-02-15 14:02 UTC, cwo
Details
discover sources combobox screenshot (229.17 KB, image/png)
2025-03-09 20:25 UTC, cwo
Details
output when running discover in terminal (43.75 KB, text/plain)
2025-03-09 20:26 UTC, cwo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cwo 2025-02-15 14:01:29 UTC
Created attachment 178398 [details]
discover prefers flatpak

SUMMARY

Discover displays the Flatpak logo on apps that are available through PackageKit, even if PackageKit is set as the Default Source. Opening an app page also defaults to the Flatpak version, even if the rpm version is already installed. 


STEPS TO REPRODUCE
1. Open Discover
2. Have PackageKit set as the default source
3. Search for "yakuake" (or anything else really that's on flatpak and packagekit)

OBSERVED RESULT

Yakuake has the Flatpak emblem, and clicking it opens the app page defaulted to flatpak, not the rpm that is already installed.

See attached screenshot

EXPECTED RESULT

Only apps that are not available through PackageKit (and/or actually installed through Flatpak) get the emblem, and the page that is opened should be one for the installed version, and starting from the default source if it is not installed (with. 

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.12.13-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Intel® HD Graphics 520

ADDITIONAL INFORMATION

Happens on both git master and stock Fedora 41 version of Discover on one of my laptops, and on my Desktop also stock Fedora 41, but not on another laptop with stock Fedora 41. The only difference that comes to mind is that the laptop where it works was upgraded from Fedora 40, while the other two were directly installed as Fedora 41. discoverrc seems identical between the desktop (incorrect) and laptop (correct), except for window state.
Comment 1 cwo 2025-02-15 14:02:20 UTC
Created attachment 178399 [details]
Discover settings showing that Flatpak is not the default source
Comment 2 Harald Sitter 2025-03-09 18:31:37 UTC
When you navigate to the application page of yakuake, where it shows the screenshots and description and stuff, can you click the sources box in the top right and tell us what's listed and what's selected there?

Also, any useful output when you start the app from a terminal?
Comment 3 cwo 2025-03-09 20:25:25 UTC
Created attachment 179252 [details]
discover sources combobox screenshot
Comment 4 cwo 2025-03-09 20:26:56 UTC
Created attachment 179253 [details]
output when running discover in terminal
Comment 5 cwo 2025-03-09 20:35:04 UTC
See the new attachments. I noticed that this only seems to happen with search; if I browse the installed packages it will show the RPM version immediately.

This is from master, if you want the stock Fedora 41 version as well let me know.