You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't get any error while opening the mouse dialog.
I have: services.xserver.libinput.enable = true;. Does this maybe fixes the problem? If yes, we need to activate that automatically, if you enable plasma5.
This is super odd. I get the error on 2 different machines. I'll try to reproduce this in a VM with minimal config. According to ldd, systemsettings5 doesn't reference libinput which I would assume that it does.
ldd /nix/store/mafzvjphwlby6qbvf725ncp2zp9iwkf8-plasma-desktop-5.13.0/lib/qt-5.11/plugins/kcm_mouse.so
Systemsettings only load the kcm modules. For me, ldd on this file does not show any dependency on libinput.
Now it works on one machine but still not on the other. They have almost identical configurations. This is the error:
peter@mildred:~ $ kcmshell5 mouse
org.kde.kcoreaddons: Error loading plugin "kcm_input" "The shared library was not found."
Plugin search paths are ("/home/peter/.cache/npm-packages/lib/qt-5.11/plugins", "/home/peter/.local/lib/qt-5.11/plugins", "/home/peter/.cache/npm-packages/lib/qt-5.11/plugins", "/home/peter/.local/lib/qt-5.11/plugins", "/home/peter/lib/qt-5.11/plugins", "/run/wrappers/lib/qt-5.11/plugins", "/home/peter/.local/share/flatpak/exports/lib/qt-5.11/plugins", "/var/lib/flatpak/exports/lib/qt-5.11/plugins", "/home/peter/.nix-profile/lib/qt-5.11/plugins", "/nix/var/nix/profiles/default/lib/qt-5.11/plugins", "/run/current-system/sw/lib/qt-5.11/plugins", "/etc/profiles/per-user/peter/lib/qt-5.11/plugins", "/nix/store/ara5mkscd313n3nhxn5602lp68qghcaf-kde-cli-tools-5.13.0/bin")
The environment variable QT_PLUGIN_PATH might be not correctly set
Error loading KCM plugin "kcm_input" "The shared library was not found."
ldd reveals no problems when run against kcm_mouse.so. strace throws a ton of "file not found" because it looks in loads of directories for the various libraries but nothing obvious.
That's what so weird - apart from some minor hardware changes, those machines are otherwise built using the same configuration.nix. Maybe there is a stray config file somewhere that makes it load the wrong file?
Yes as well. Apart from a few mounts and of course the hardware differences (but nothing USB/input related), they are exactly the same.
But finally something - if I use a different user on the broken machine, it's working. So there is some left-over cruft that is causing this to break. I'm going to have to do some digging...
Activity
bkchr commentedon Jun 25, 2018
I don't get any error while opening the mouse dialog.
I have:
services.xserver.libinput.enable = true;. Does this maybe fixes the problem? If yes, we need to activate that automatically, if you enable plasma5.peterhoeg commentedon Jun 25, 2018
I already have
services.xserver.libinput.enable = true;as well.bkchr commentedon Jun 25, 2018
Hmm okay. Maybe I need to attach a mouse to see the error ^^
bkchr commentedon Jun 25, 2018
On my other PC, I also do not get this error...
peterhoeg commentedon Jun 26, 2018
This is super odd. I get the error on 2 different machines. I'll try to reproduce this in a VM with minimal config. According to
ldd,systemsettings5doesn't referencelibinputwhich I would assume that it does.bkchr commentedon Jun 26, 2018
ldd /nix/store/mafzvjphwlby6qbvf725ncp2zp9iwkf8-plasma-desktop-5.13.0/lib/qt-5.11/plugins/kcm_mouse.soSystemsettings only load the kcm modules. For me, ldd on this file does not show any dependency on
libinput.bkchr commentedon Jun 26, 2018
I looked into the code and the following line is responsible for selecting
libinputorevdev:https://github.com/KDE/plasma-desktop/blob/6a4b5870fb2ff918df9e5b8f708e8039b394177e/kcms/mouse/backends/x11/x11_backend.cpp#L56
Could you post your configuration.nix? I must be missing something and thus the libinput backend is not selected.
bkchr commentedon Jun 29, 2018
Any update?
peterhoeg commentedon Jun 29, 2018
bkchr commentedon Jun 30, 2018
Okay, I verified that my kcm mouse also loads the libinput backend. I don't understand why you get this error.
Could you execute
kcmshell5 mouseand try to find out which library is missing?peterhoeg commentedon Jul 2, 2018
Now it works on one machine but still not on the other. They have almost identical configurations. This is the error:
bkchr commentedon Jul 2, 2018
Could you maybe do a
straceso that we see which shared library is not found? Or maybe alreadylddreveals which is missing.peterhoeg commentedon Jul 2, 2018
ldd reveals no problems when run against
kcm_mouse.so. strace throws a ton of "file not found" because it looks in loads of directories for the various libraries but nothing obvious.bkchr commentedon Jul 2, 2018
Could you upload the strace output for me?
peterhoeg commentedon Jul 2, 2018
Files were too big for pastebin, so I dropped them here: http://cdn.speartail.com/store/mouse_M2JlYmE1Yzk3NzJh.zip
There's a strace from the working machine as well as the non-working machine.
Thanks - much appreciated!
bkchr commentedon Jul 2, 2018
Hmm weird, what did you change between the working and the non-working machine?
The non-working tries to load
libkcm-input.so, but the KCM was renamed tolibkcm-mouse.so, before the 5.13 release...: KDE/plasma-desktop@8f7a827#diff-42f1c9ddf5f75cbbcbf4ea2b5c5e49b2Your working machine loads the correct kcm, the
libkcm-mouse.so. I don't know why that is happening, maybe some configuration file somewhere?peterhoeg commentedon Jul 2, 2018
That's what so weird - apart from some minor hardware changes, those machines are otherwise built using the same
configuration.nix. Maybe there is a stray config file somewhere that makes it load the wrong file?bkchr commentedon Jul 2, 2018
@peterhoeg could you paste the content of the following file?
~/.config/kcmshell5rcThis file does not exist for me, but your kcm loads that successfully.
peterhoeg commentedon Jul 2, 2018
I think that's just a red herring:
bkchr commentedon Jul 2, 2018
Do you have the file
/run/current-system/sw/share/kservices5/mouse.desktop?Or maybe
/run/current-system/sw/share/kservices5/input.desktop?peterhoeg commentedon Jul 3, 2018
mouse.desktop, yes,input.desktop, no.Contents without the translation entries:
bkchr commentedon Jul 3, 2018
Really weird :/ And you still have one machine where it works and one where it does not work?
peterhoeg commentedon Jul 3, 2018
Yep.
bkchr commentedon Jul 3, 2018
Are both machines on the same version of nixpkgs?
peterhoeg commentedon Jul 3, 2018
Yes as well. Apart from a few mounts and of course the hardware differences (but nothing USB/input related), they are exactly the same.
But finally something - if I use a different user on the broken machine, it's working. So there is some left-over cruft that is causing this to break. I'm going to have to do some digging...
bkchr commentedon Jul 3, 2018
Yeah, would be nice to know what causes the problem!
bkchr commentedon Jul 3, 2018
One more random idea, could you execute
kbuildsycoca5and see if that changes something?peterhoeg commentedon Jul 3, 2018
That did it! You're an absolute star.