Bug 405966

Summary: On Arch-based distros, installed apps are inappropriately shown from a source prefixed with "Installed"
Product: [Applications] Discover Reporter: Patrick Silva <bugseforuns>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, nate
Priority: NOR    
Version First Reported In: 5.15.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: handbrake installed from Arch repos - "Installed (Arch Linux)"
handbrake is not installed - "community (Arch Linux)"

Description Patrick Silva 2019-03-28 15:54:29 UTC
Created attachment 119103 [details]
handbrake installed from Arch repos - "Installed (Arch Linux)"

When an app is available in both flatpak and distro repos
and it only was installed from the distro repos, "Sources" dropdown shows "Installed (Arch Linux)". When the app is not installed or it only was installed via flatpak/flathub, the dropdown shows the repo name, like "community (Arch Linux)".

I think this inconsistent because when the app was installed via flatpak/flathub the dropdown does not show "Installed (Flatpak)", it remains "flathub (Flatpak)".
See the screenshots please.

OBSERVED RESULT
inconsistency

EXPECTED RESULT
show sources more consistently

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Comment 1 Patrick Silva 2019-03-28 15:55:07 UTC
Created attachment 119104 [details]
handbrake is not installed - "community (Arch Linux)"
Comment 2 Bug Janitor Service 2022-09-21 12:50:58 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/190
Comment 3 Aleix Pol 2022-09-21 12:53:14 UTC
Sorry, wrong BUG:
Comment 4 Aleix Pol 2022-09-21 13:09:42 UTC
So yes, it's a real problem.

In this case it happens because PackageKit alpm marks "installed" as the origin for installed apps. There is no way for us to verify that is not true that I can think of.
Comment 5 Patrick Silva 2023-11-30 15:02:44 UTC
On Plasma 6 beta the sources dropdown just says "Arch Linux" for apps from Arch repos regardless they are installed or not.

Operating System: Arch Linux 
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Graphics Platform: Wayland