Bug 405966 - On Arch-based distros, installed apps are inappropriately shown from a source prefixed with "Installed"
Summary: On Arch-based distros, installed apps are inappropriately shown from a source...
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (other bugs)
Version First Reported In: 5.15.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-28 15:54 UTC by Patrick Silva
Modified: 2023-11-30 15:02 UTC (History)
2 users (show)

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


Attachments
handbrake installed from Arch repos - "Installed (Arch Linux)" (337.66 KB, image/png)
2019-03-28 15:54 UTC, Patrick Silva
Details
handbrake is not installed - "community (Arch Linux)" (246.43 KB, image/png)
2019-03-28 15:55 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
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