https://bugs.kde.org/show_bug.cgi?id=511220

cwo <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-workspace/-/commi
                   |                            |t/223f80fd795e749664c822461
                   |                            |dbf69cc99908c1a
            Version|                            |6.8.0
  Fixed/Implemented|                            |
                 In|                            |
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from cwo <[email protected]> ---
Git commit 223f80fd795e749664c822461dbf69cc99908c1a by Christoph Wolk.
Committed on 26/08/2026 at 07:26.
Pushed by vladz into branch 'master'.

runners/appstream: make database static

Querying the appstream runner only works in the first plasma widget
that you are using it in - query something in Kickoff on one monitor
that searches appstream, and all other kickoff etc. widgets on this and
other monitors will not return any appstream results.

The reason is that the appstream runner's match has a static local
variable that tracks whether the appstream pool has been loaded (shared
between all krunner instances in plasmashell), but the appstream pool
itself is a regular member variable (separate for each krunner instance
in plasmashell). So when trying to query the runner in the second or
later widget, the query function will think the pool has been loaded
when it has not in this instance, and return no matches.

Having this be static seems reasonable - the database can be shared
between widgets. We just need to make sure that they are actually
sharing the database, and not just the bool that tracks whether the pool
has been loaded.
FIXED-IN: 6.8.0

M  +6    -4    runners/appstream/appstreamrunner.cpp
M  +1    -1    runners/appstream/appstreamrunner.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/223f80fd795e749664c822461dbf69cc99908c1a

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to