ktouchpadenabler is currently the kded in plasma which by default listens for the touchpad enable shortcut and enables/disables it when it is pressed. kcm-touchpad overlaps with the functionality somewhat and it should take on the feature of ktouchpadenabler so we can drop ktouchpadenabler Reproducible: Always
Created attachment 90361 [details] Take over global shortcut keys for touchpad enable/disable/toggle and fix dataengine Here's a patch that takes over global shortcuts for touchpad enable/disable/toggle. It also fixes the applet to use correct plasma components and installing/loading the dataengine. There's one issue - I couldn't find a replacement to PlasmaCore.ToolTip to port the applet to Plasma2. I couldn't test it either in Fedora 21 as the dataengine doesn't seem to work in my system (not only touchpad dataengine but many others are not working). Please test and check if things work,
FWIW, unwary of this BR, I fixed the above problems today (except the keyboard shortcuts): http://commits.kde.org/kcm-touchpad/7494875a95ccfacc407eb0278f8c1deb71b2b949
@Lukas - thanks, but it breaks the build due to kcoreaddons_desktop_to_json(plasma_engine_touchpad ${CMAKE_CURRENT_BINARY_DIR}/plasma-dataengine-touchpad.desktop) Shouldn't that be ${CMAKE_CURRENT_SOURCE_DIR} ?
Nope, the resulting plasma-dataengine-touchpad.desktop is generated at build time using the configure_file() cmake macro
Right, that indeed fixes the build issue for me. Thanks!
Should this report be closed? Should we remove ktouchpadenabler ?
No, the keyboard shortcuts are not incorporated. I saw a commit from Weng Xuetian making certain changes in that area 2 days ago. Guess I'd need to rework this patch, and may post it in reviewboard instead once I find some time.
Review Request #122319 created for this. I'd appreciate review.
Git commit 91786b418e718639fd044a8f2feae80acd8eb267 by Lukáš Tinkl. Committed on 29/01/2015 at 23:12. Pushed by lukas into branch 'master'. Set global shortcuts for touchpad enable/disable/toggle Patch by: Rajeesh K Nambiar with minor modifications to let it compile :) REVIEW: 122319 M +13 -1 src/kded/kdedactions.cpp http://commits.kde.org/kcm-touchpad/91786b418e718639fd044a8f2feae80acd8eb267