kcontrol: add solid action files for mouse, keyboard and joystick devices

try plugging a mouse, keyboard or joystick - see what happens!

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-09-07 22:20:35 +03:00
parent e278cad3ca
commit 7065198d98
6 changed files with 54 additions and 4 deletions

View file

@ -97,11 +97,24 @@ if (X11_Xfixes_FOUND)
target_link_libraries(kcm_cursortheme ${X11_Xfixes_LIB})
endif (X11_Xfixes_FOUND)
install(TARGETS kcm_cursortheme DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} )
install(
TARGETS kcm_cursortheme
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
)
########### install files ###############
install( FILES mouse.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )
install( FILES cursortheme.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )
install(
FILES mouse.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
)
install(
FILES cursortheme.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
)
install(
FILES mouse_new.desktop
DESTINATION ${KDE4_DATA_INSTALL_DIR}/solid/actions
)

View file

@ -0,0 +1,9 @@
[Desktop Entry]
X-KDE-Solid-Predicate=Input.inputType == 'Mouse'
Type=Service
Actions=configure;
[Desktop Action configure]
Name=Configure the mouse
Exec=kcmshell4 mouse
Icon=preferences-desktop-mouse

View file

@ -27,3 +27,8 @@ install(
FILES joystick.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
)
install(
FILES joystick_new.desktop
DESTINATION ${KDE4_DATA_INSTALL_DIR}/solid/actions
)

View file

@ -0,0 +1,9 @@
[Desktop Entry]
X-KDE-Solid-Predicate=Input.inputType == 'Joystick'
Type=Service
Actions=configure;
[Desktop Action configure]
Name=Configure the joystick
Exec=kcmshell4 joystick
Icon=preferences-desktop-gaming

View file

@ -22,3 +22,8 @@ install(
FILES kcm_keyboard.desktop
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
)
install(
FILES keyboard_new.desktop
DESTINATION ${KDE4_DATA_INSTALL_DIR}/solid/actions
)

View file

@ -0,0 +1,9 @@
[Desktop Entry]
X-KDE-Solid-Predicate=Input.inputType == 'Keyboard'
Type=Service
Actions=configure;
[Desktop Action configure]
Name=Configure the keyboard
Exec=kcmshell4 kcm_keyboard
Icon=preferences-desktop-keyboard