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

cwo <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kactivitymanagerd/-/comm
                   |                            |it/1c7c90802be9c7e92f7329d9
                   |                            |30d0fbc1c1082d50
            Version|                            |6.6.0
  Fixed/Implemented|                            |
                 In|                            |
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from cwo <[email protected]> ---
Git commit 1c7c90802be9c7e92f7329d930d0fbc1c1082d50 by Christoph Wolk.
Committed on 05/02/2026 at 14:00.
Pushed by meven into branch 'master'.

service/Resources: actually save mimetype

RegisterMimeType returns early if the mimetype provided is not empty.
This means that for adding resource activity through the dbus interface
of kactivitymanagerd, the resource is registered, but the mimetype is
not set. (The recentlyused.xbel and LibreOffice spies directly send a
signal that causes the database to save them and do not go through
RegisterMimeType, so it works there, or at least for recentlyused.xbel;
I didn't test LibreOffice).

This causes several bugs and inconsistencies - PAStats has support
for filtering by mimetype category (files, directories, and any).
Dolphin and Kicker(dash) restrict their results to files (and in Dolphin
also directories), but kickoff does not, so Dolphin and Kicker only
contain recently used files that were added to recentlyused.xbel, not
all files. Kickoff includes all of them, but with empty mimetypes, which
still will result in files showing up with correct icons somehow, but
directories will show up with empty mimetypes and be labeled as a file,
not as a directory, and there may be duplicated entries (one with, one
without mimetype). It will also break the automated grouping, which uses
mimetypes; some mimetype-less folders will later be recognized as
folders through KFilePlacesModel, but after they are sorted so there may
end up being multiple Folders sections in a list that should be sorted
by that.

Instead, we only return early if no mimetype was set, which makes more
sense intuitively (why save it only when it's empty) and fixes all these
issues (except the duplicate sections in kickoff, which may not be
resolved immediately, but it should stop new ones from appearing, and
fix the existing ones as their mimetypes get added through regular use.
Related: bug 496179
FIXED-IN: 6.6.0

M  +1    -1    src/service/Resources.cpp

https://invent.kde.org/plasma/kactivitymanagerd/-/commit/1c7c90802be9c7e92f7329d930d0fbc1c1082d50

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

Reply via email to