Bug 512957 - PackageKit plugin hard-coded to deny OSTree installatons
Summary: PackageKit plugin hard-coded to deny OSTree installatons
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: Discover
Classification: Applications
Component: PackageKit (other bugs)
Version First Reported In: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-04 21:13 UTC by Pornpipat Popum
Modified: 2025-12-11 11:16 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pornpipat Popum 2025-12-04 21:13:24 UTC
SUMMARY
I've noticed that in the PackageKit plugin, it is specifically hardcoded to deny it from being used when /run/ostree-booted exists. https://invent.kde.org/plasma/discover/-/blob/master/libdiscover/backends/PackageKitBackend/PackageKitBackend.h#L90

I have recently written a PackageKit backend to specifically support bootc-based images for updating over PackageKit (https://github.com/FyraLabs/PackageKit-bootc), and Discover refuses to start and crashes outright, considering the plugin invalid due to /run/ostree-booted existing, making updates over PackageKit impossible.

STEPS TO REPRODUCE
1. Install PackageKit-bootc and the PackageKit backend
2. Attempt to run Plasma Discover

OBSERVED RESULT
The PackageKit backend gets rejected and the application crashes

EXPECTED RESULT
Discover loads the PackageKit backend

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Ultramarine Linux 43
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-12-08 21:47:25 UTC
If you remove that check, does everything work?
Comment 2 Pornpipat Popum 2025-12-09 07:27:00 UTC
(In reply to Nate Graham from comment #1)
> If you remove that check, does everything work?

Yes, reverting commit b7ed897e6842002b195c02c6e89f4e06aee12d09 (https://invent.kde.org/plasma/discover/-/commit/b7ed897e6842002b195c02c6e89f4e06aee12d09), and using the new PackageKit bootc plugin, everything works as intended.
Comment 3 Nate Graham 2025-12-09 16:25:54 UTC
Are you interested in sending a merge request to change that?
Comment 4 Pornpipat Popum 2025-12-11 11:16:41 UTC
(In reply to Nate Graham from comment #3)
> Are you interested in sending a merge request to change that?

Yes, I will do that soon