SUMMARY If we type 'trash' in krunner, it shows a result labelled 'System Settings | Trash'. If we select this item, it opens the homepage of the systemsettings application instead of the Trash settings. The Trash settings are located in Dolphin's settings, and not in the systemsettings application). STEPS TO REPRODUCE 1. Type 'trash' in krunner 2. Select the item labelled 'System Settings | Trash'. OBSERVED RESULT System settings window opens at the 'home page'. EXPECTED RESULT Trash configuration menu which is located in Dolphin's settings should be opened. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.19.2 KDE Frameworks Version: 5.71.0 Qt Version: 5.15.0 Kernel Version: 5.7.6-arch1-1 ADDITIONAL INFORMATION Can also reproduce in a KDE Neon VM.
Can confirm on KDE Neon Unstable.
This issue only exists when using systemsettings, it works fine with kcmshell. https://invent.kde.org/plasma/plasma-workspace/-/commit/e67e8d6d92a1b85e85be1f8f656ff5b51bd90ace
This is a bigger problem: If the KCM has no X-KDE-System-Settings-Parent-Category it can't be loaded. This is the case with the other dolphin KCMs and a few others. To try this out add: >X-KDE-System-Settings-Parent-Category=desktopbehavior To the KCM (/usr/share/kservices5/kcmtrash.desktop) and then run kbuildsycoca5. Then you should be able to launch it with: >systemsettings5 kcmtrash The code responsible for this is located in systemsettings/core/MenuItem.cpp in MenuItem::descendantForModule And in SidebarMode line 714 where the method is called null is returned if no parent is found.
Darn, this is no good. I guess we have two immediate options: 1. Have the openSystemSettings() function check for the presence of a X-KDE-System-Settings-Parent-Category property and open it in KCMShell if it's missing 2. Allow System Settings itself to display KCMs without the X-KDE-System-Settings-Parent-Category property #1 Cannot be released as a hotfix in Plasma since it lives in the KDeclarative framework which is on a different release schedule (though I suppose we could ask distros to patch it into their older versions). But #2 might be a bit confusing since these KCMs don't otherwise appear in System Settings. Regardless, moving to System Settings for now. Thoughts, everyone? Also I feel like the concept of KCMs that don't appear in System Settings itself somewhat awkward and we may want to review that, long term.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/131
*** Bug 423828 has been marked as a duplicate of this bug. ***
Git commit 2ebf8ab391466146a7a6ae3d4dad3e0ff0c7276d by Nate Graham, on behalf of Alexander Lohnau. Committed on 08/07/2020 at 14:00. Pushed by ngraham into branch 'master'. Only open KCM in systemsettings if it can be displayed We have to check for the presence of a X-KDE-System-Settings-Parent-Category entry when opening a KCM in systemsettings. M +2 -1 runners/services/servicerunner.cpp https://invent.kde.org/plasma/plasma-workspace/commit/2ebf8ab391466146a7a6ae3d4dad3e0ff0c7276d
Git commit 5bc6d83ae083632fa4eef21a03b1ef59dd9a852e by Nate Graham, on behalf of Alexander Lohnau. Committed on 08/07/2020 at 14:04. Pushed by ngraham into branch 'Plasma/5.19'. Only open KCM in systemsettings if it can be displayed We have to check for the presence of a X-KDE-System-Settings-Parent-Category entry when opening a KCM in systemsettings. (cherry picked from commit 2ebf8ab391466146a7a6ae3d4dad3e0ff0c7276d) M +2 -1 runners/services/servicerunner.cpp https://invent.kde.org/plasma/plasma-workspace/commit/5bc6d83ae083632fa4eef21a03b1ef59dd9a852e
Git commit aa84d6c2848f1e0ec45085160e4238a9733f6458 by Alexander Lohnau. Committed on 10/07/2020 at 19:32. Pushed by alex into branch 'master'. Open trash KCM from plasmoid in KCMShell M +1 -1 applets/trash/package/contents/ui/main.qml https://invent.kde.org/plasma/plasma-desktop/commit/aa84d6c2848f1e0ec45085160e4238a9733f6458
*** Bug 424323 has been marked as a duplicate of this bug. ***