SUMMARY Invalid KPackage 'kcm_kwinrules STEPS TO REPRODUCE 1. Open System Settings /Window Management/Window Rules 2. 3. OBSERVED RESULT "Error loading QML file. Invalid Kpackage 'kcm_kwinrules'". kcm_kwinrules exists in the directory "usr/local/share/kpackage/kcms/". It is installed by kwin_common. Reinstalling kwin-common does not solve the problem. Possibly a wrong path statement somewhere? EXPECTED RESULT kwin rules should be available in under Window Management in System Settings SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora 35 Kernel Version: 5.16.15-201.fc35.x86_64 KDE Plasma Version: 5.24.3 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.2
Thanks for your bug report! Can you try running "kcmshell5 kcm_kwinrules" and also opening it from the application menu (Alt+F3 -> More options -> Open specific window properties) to see it the error persist there? This may help debugging the issue.
(In reply to Ismael Asensio from comment #1) > Thanks for your bug report! > > Can you try running "kcmshell5 kcm_kwinrules" and also opening it from the > application menu (Alt+F3 -> More options -> Open specific window properties) > to see it the error persist there? This may help debugging the issue. "kcmshell5 kcm_kwinrules" Result: QObject::startTimer: Timers can only be used with threads started with QThread kf.coreaddons: "Could not load plugin from kcm_kwinrules: The shared library was not found." Error loading the module "kcm_kwinrules" : invalid KPackage Popup: Window Rules - System Settings Module / Window Rules "Error Loading QML file. Invalid KPackage 'kcm_kwinrules'" Alt F3 More Actions/Configure Special Window Settings - or - More Actions/Configure Special Application Settings produces the same Popup
(In reply to SP from comment #2) > (In reply to Ismael Asensio from comment #1) > > Thanks for your bug report! > > > > Can you try running "kcmshell5 kcm_kwinrules" and also opening it from the > > application menu (Alt+F3 -> More options -> Open specific window properties) > > to see it the error persist there? This may help debugging the issue. > > "kcmshell5 kcm_kwinrules" > Result: > > QObject::startTimer: Timers can only be used with threads started with > QThread > kf.coreaddons: "Could not load plugin from kcm_kwinrules: The shared library > was not found." > Error loading the module "kcm_kwinrules" : invalid KPackage > > Popup: Window Rules - System Settings Module / Window Rules "Error Loading > QML file. Invalid KPackage 'kcm_kwinrules'" > > Alt F3 More Actions/Configure Special Window Settings - or - More > Actions/Configure Special Application Settings produces the same Popup But the shared library it is looking for "kcm_kwinrules.so" is there in /usr/lib64/qt5/plugins/kcms This may not be a bug but some misconfiguration of some config file that happened in an upgrade? Where would the path to that library be configured?
>> kf.coreaddons: "Could not load plugin from kcm_kwinrules: The shared library was not found." That might not be an issue at all, because the KWin KCMs are not ported to the new install location and thus KCMUtils has to guess if the plugin is is "kcm_kwinrules" or "kcms/kcm_kwinrules". See https://invent.kde.org/frameworks/kcmutils/-/blob/master/src/kcmoduleloader.cpp#L65 for the relevant code.
Please check if /usr/share/kpackage/kcms/kcm_kwinrules/ exists and list the containing files
(In reply to Alexander Lohnau from comment #5) > Please check if /usr/share/kpackage/kcms/kcm_kwinrules/ exists and list the > containing files Yes - as I mentioned in my earlier report that directory does exist. "/usr/share/kpackage/kcms/kcm_kwinrules/" contains: contents metadata.desktop metadata.json "/usr/share/kpackage/kcms/kcm_kwinrules/contents" contains: "/ui" which contains: FileDialogLoader.qml OptionsComboBox.qml RuleItemDelegate.qml RulesEditor.qml RulesList.qml ValueEditor.qml "/usr/lib64/qt5/plugins/kcms" contains: kcm_kaccounts.so kcm_kwindecoration.so kcm_kwinrules.so kcm_pulseaudio.so kcm_virtualkeyboard.so kcm_kscreen.so kcm_kwin_effects.so kcm_kwin_virtualdesktops.so kcm_screenlocker.so
(In reply to SP from comment #6) > (In reply to Alexander Lohnau from comment #5) > > Please check if /usr/share/kpackage/kcms/kcm_kwinrules/ exists and list the > > containing files > > Yes - as I mentioned in my earlier report that directory does exist. > "/usr/share/kpackage/kcms/kcm_kwinrules/" contains: > contents metadata.desktop metadata.json > > "/usr/share/kpackage/kcms/kcm_kwinrules/contents" contains: > "/ui" which contains: > FileDialogLoader.qml OptionsComboBox.qml RuleItemDelegate.qml > RulesEditor.qml RulesList.qml ValueEditor.qml > > "/usr/lib64/qt5/plugins/kcms" contains: > kcm_kaccounts.so kcm_kwindecoration.so kcm_kwinrules.so > kcm_pulseaudio.so kcm_virtualkeyboard.so > kcm_kscreen.so kcm_kwin_effects.so kcm_kwin_virtualdesktops.so > kcm_screenlocker.so Should there not be a "main.qml" in the kwin_rules directory? It is not there - nor is it in my other desktop.
>Should there not be a "main.qml" in the kwin_rules directory? It is not there - nor is it in my other desktop. In the metadata we have the following line defined, which overrides the entrypoint file: "X-Plasma-MainScript": "ui/RulesList.qml"
Is this still reproducible?
(In reply to Alexander Lohnau from comment #9) > Is this still reproducible? Yes I still get a Popup: "Window Rules - System Settings Module / Window Rules "Error Loading QML file. Invalid KPackage 'kcm_kwinrules'" " But the preceding verbiage in the terminal is brief: "Error loading the module "kdm_kwinrules" : invalid KPackage "
Currently running FC 26 with KDE Plasma 5.25.5 under Wayland
Currently running FC 36 with KDE Plasma 5.25.5 under Wayland
(In reply to SP from comment #10) > (In reply to Alexander Lohnau from comment #9) > > Is this still reproducible? > > Yes I still get a Popup: "Window Rules - System Settings Module / Window > Rules "Error Loading QML file. Invalid KPackage 'kcm_kwinrules'" " > But the preceding verbiage in the terminal is brief: > "Error loading the module "kdm_kwinrules" : invalid KPackage " I appear to have fixed the error. I realized that I had a duplicate kpackage in /usr/local/share/kpackage as well as /usr/share/kpackage. Removed the directory from /usr/local/share and now the error no longer presents. So I will mark this as resolved. Thanks for following up.
> I realized that I had a duplicate kpackage in /usr/local/share/kpackage as well as /usr/share/kpackage. Removed the directory from /usr/local/share and now the error no longer presents. Do you know why the /usr/local folder existed?
(In reply to Alexander Lohnau from comment #14) > > I realized that I had a duplicate kpackage in /usr/local/share/kpackage as well as /usr/share/kpackage. Removed the directory from /usr/local/share and now the error no longer presents. > > Do you know why the /usr/local folder existed? I am unsure but it is possible that when the problem initially occurred I may have reinstalled packages in an attempt to resolve this - which, of course, it did not.