Bug 487212 - Setting home directory to "Indexed" creates a duplicate, unremovable entry in System Settings
Summary: Setting home directory to "Indexed" creates a duplicate, unremovable entry in...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_baloofile (other bugs)
Version First Reported In: 6.0.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 504954 524283 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-05-18 22:58 UTC by pmquinn5
Modified: 2026-09-12 05:25 UTC (History)
9 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pmquinn5 2024-05-18 22:58:29 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY

[BUG] Setting home directory to "Indexed" creates a duplicate, unremovable entry in System Settings

STEPS TO REPRODUCE
        
      Open File Search - System Settings

        
      Change your home directory to Indexed

        
      Click apply, then navigate to a different page and back to the original page, so it refreshes

        
      Observe that there are now two entries for your home directory, one indexed and one not indexed. Neither is removable.

OBSERVED RESULT
   Observe that there are now two entries for your home directory, one indexed and one not indexed. Neither is removable.

EXPECTED RESULT

There should not be duplicate entries.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 40
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION

Steps 1-4 can be repeated, generating an endless number of duplicate entries. Screenshot of four (there should only ever be one) unremovable entries for my home directory, after repeating steps 1-4 three times:
https://invent.kde.org/plasma/systemsettings/uploads/c9290b379407acaf104a477f836ef1e1/image.png
Comment 1 Tobias Fella 2026-09-07 14:38:49 UTC
*** Bug 524283 has been marked as a duplicate of this bug. ***
Comment 2 Tobias Fella 2026-09-07 14:39:04 UTC
*** Bug 504954 has been marked as a duplicate of this bug. ***
Comment 3 Bug Janitor Service 2026-09-08 10:37:54 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kconfig/-/merge_requests/478
Comment 4 IsaacCodes 2026-09-08 23:28:32 UTC
Thanks for taking a look at this <3
Comment 5 Nicolas Fella 2026-09-09 10:54:49 UTC
Git commit 083137a64c8415c71545a6e47fa19b0aa743409d by Nicolas Fella.
Committed on 09/09/2026 at 10:49.
Pushed by nicolasfella into branch 'master'.

Fix writing empty path entries

putData() behaves differently when adding null vs empty data.

Null means that the entry will be marked as deleted, empty means
an empty value will be written.

When calling write(Path)Entry with an empty string/path we want the
empty entry to be written. To make this work writeEntry() checks
whether the provided value is null and puts an non-null but empty
bytearray in the map. writePathEntry was missing that though, so it
worked as expected for strings but not paths.

M  +9    -0    autotests/kconfigtest.cpp
M  +2    -2    src/core/kconfiggroup.cpp

https://invent.kde.org/frameworks/kconfig/-/commit/083137a64c8415c71545a6e47fa19b0aa743409d
Comment 6 tagwerk19 2026-09-12 05:25:53 UTC
Thank you for the fix!

I know I've seen this in other bug reports, it's something that has specially affected Fedora users (as Fedora leaves the Home folder unindexed)