Discover not starting

I am not a quite good with these things but I have tried to fix this with some help from AI but it doesn’t help. I already saw an older post about this but it was already dead and I have better luck reaching out for support by trying the methods seen in the older post in a new post.

The problem is that the first time I open the Discover app, it works fine. But after closing it and trying to reopen it, it refuses to open.
To open it:

pkill -9 -f plasma-discover

After the command it works again but the same thing will be seen again after closing that.

Here are my logs from terminal:

kela@kotiboksi:~$ plasma-discover
org.kde.plasma.libdiscover: OdrsReviewsBackend: Fetch ratings: false
adding empty sources model QStandardItemModel(0x55ec9c09ea60)
qrc:/qt/qml/org/kde/discover/qml/DiscoverWindow.qml:119:5: QML Shortcut: Shortcut:
Only binding to one of multiple key bindings associated with 15. Use ‘sequences:
[ ]’ to bind to all of them.
qt.qpa.services: Failed to register with host portal QDBusError(“org.freedesktop.p
ortal.Error.Failed”, “Could not register app ID: Connection already associated wit
h an application ID”)
kf.kio.core: Connection::send() called with connection not inited
kf.kio.core: An error occurred during write. The worker terminates now.

In the older post someone mentioned changing the backends and seeing what is the failing one,

plasma-discover --listbackends
Available backends:
* fwupd-backend
* flatpak-backend
* kns-backend
* packagekit-backend

But changing the backend like in this command:

plasma-discover --backends packagekit-backend,kns-backend

It doesn’t resolve my issue even when trying every combination from 1 backend to all 4, it remains in the backround spamming this one line in the terminal:

kf.kio.core: Connection::send() called with connection not inited
kf.kio.core: An error occurred during write. The worker terminates now.

I really want to solve this issue.

This started happening after installing an RPM file with Discover and then removing it, it only says transaction failure and nothing else. Now it gives me transaction failure on every single RPM app I remove

Just a guess, but to me this look like discover does not shut down correctly the first time. This could be some packaging error, so the best thing might be to write a bug report on your distos bugtracker and hope they fix it soon.

This is the thing i forgot to say - Yes indeed, it doesnt shut down correctly the first time. and also the reason I posted here instead of reporting it to the bug tracker is that I just thought that this was an easy fix and something from my end (also the bug tracker requires me to give steps to reproduce??? i don’t even know how this happened man). It was a terrible design feature to leave an app store to the backround when closing it

Your Plasma version is an essential detail here, please provide information about OS used and Plasma version.

Is on all latest updates