Commit 4af9c5df authored by Alexander Lohnau's avatar Alexander Lohnau 💬 Committed by Luigi Toscano
Browse files

Install KCM desktop files ad applications with NoDisplay=true

This way the task manager can still pin the KCM or they can be linked to the desktop.
Internally this requires a KService, which is provided with the installed desktop file.

Task: https://phabricator.kde.org/T14517
parent 44fbc892
......@@ -36,7 +36,7 @@ target_link_libraries(kcm_access
X11::X11
)
install(FILES kcm_access.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES kcm_access.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(
FILES
kcmaccessibilitybell.kcfg
......
[Desktop Entry]
Icon=preferences-desktop-accessibility
Type=Service
Type=Application
Exec=systemsettings kcm_access
NoDisplay=true
Name=Accessibility
Name[af]=Toeganklikheid
......
......@@ -93,7 +93,7 @@ install (
install (
FILES kcm_activities.desktop
DESTINATION ${KDE_INSTALL_KSERVICES5DIR}
DESTINATION ${KDE_INSTALL_APPDIR}
)
install (
......
[Desktop Entry]
Icon=preferences-desktop-activities
Type=Service
Type=Application
Exec=systemsettings kcm_activities
NoDisplay=true
Name=Activities
Name[ar]=الأنشطة
......
......@@ -20,6 +20,6 @@ target_link_libraries(kcm_baloofile
Qt::Widgets
)
install(FILES kcm_baloofile.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES kcm_baloofile.desktop DESTINATION ${KDE_INSTALL_APPDIR})
kpackage_install_package(package kcm_baloofile kcms)
[Desktop Entry]
Icon=preferences-desktop-baloo
Type=Service
Type=Application
Exec=systemsettings kcm_baloofile
NoDisplay=true
Name=File Search
Name[ar]=بحث الملفّات
......
......@@ -27,5 +27,5 @@ target_link_libraries(kcm_componentchooser
KF5::KCMUtils
)
install(FILES componentchooser.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES componentchooser.desktop DESTINATION ${KDE_INSTALL_APPDIR})
kpackage_install_package(package kcm_componentchooser kcms)
[Desktop Entry]
Type=Application
Exec=systemsettings kcm_componentchooser
NoDisplay=true
Name=Default Applications
Name[af]=Verstektoepassings
Name[ar]=التطبيقات المبدئية
......@@ -121,5 +125,4 @@ Comment[x-test]=xxChoose default Applicationsxx
Comment[zh_CN]=选择默认应用程序
Comment[zh_TW]=選擇預設應用程式
Encoding=UTF-8
Type=Service
Icon=preferences-desktop-default-applications
......@@ -37,4 +37,4 @@ kauth_install_actions(org.kde.kcontrol.kcmclock kcmclock_actions.actions)
########### install files ###############
install( FILES clock.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( FILES clock.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
[Desktop Entry]
Icon=preferences-system-time
Type=Service
Type=Application
Exec=systemsettings kcm_clock
NoDisplay=true
Name=Date & Time
Name[af]=Datum & Tyd
......
......@@ -26,5 +26,5 @@ target_link_libraries(kcm_desktoppaths
)
install(TARGETS kcm_desktoppaths DESTINATION ${KDE_INSTALL_PLUGINDIR})
install(FILES desktoppath.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES desktoppath.desktop DESTINATION ${KDE_INSTALL_APPDIR})
[Desktop Entry]
Type=Service
Type=Application
Exec=systemsettings kcm_desktoppaths
NoDisplay=true
Name=Locations
Name[ar]=الأماكن
......
......@@ -27,6 +27,6 @@ install(TARGETS kcm_joystick DESTINATION ${KDE_INSTALL_PLUGINDIR} )
########### install files ###############
install( FILES joystick.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( FILES joystick.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
#
[Desktop Entry]
X-DocPath=kcontrol/joystick/index.html
Terminal=false
Type=Service
Type=Application
Icon=preferences-desktop-gaming
Categories=Qt;KDE;X-KDE-settings-hardware;
Exec=systemsettings kcm_joystick
NoDisplay=true
Comment=Calibrate Game Controller
Comment[ar]=تضبط متحكم الألعاب
......
......@@ -28,6 +28,6 @@ target_link_libraries(kcm_kded KF5::QuickAddons KF5::Service KF5::I18n KF5::KCMU
########### install files ###############
install( FILES kcmkded.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( FILES kcmkded.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
kpackage_install_package(package kcm5_kded kcms)
[Desktop Entry]
Icon=preferences-system-session-services
Type=Service
Type=Application
Exec=systemsettings kcm_kded
NoDisplay=true
Name=Background Services
Name[ar]=خدمات الخلفيّة
......
......@@ -137,7 +137,7 @@ target_link_libraries(kcm_keyboard kcm_keyboard_static)
install(TARGETS kcm_keyboard DESTINATION ${KDE_INSTALL_PLUGINDIR} )
install( FILES kcm_keyboard.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
install( FILES kcm_keyboard.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
add_subdirectory(kconf_update)
......
[Desktop Entry]
Icon=preferences-desktop-keyboard
Type=Service
Type=Application
Exec=systemsettings kded_keyboard
NoDisplay=true
Name=Keyboard
Name[af]=Sleutelbord
......
......@@ -54,7 +54,7 @@ target_link_libraries(kcm_keys
KF5::QuickAddons
)
install(FILES kcm_keys.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(FILES kcm_keys.desktop DESTINATION ${KDE_INSTALL_APPDIR})
kpackage_install_package(package kcm_keys kcms)
......
[Desktop Entry]
Icon=preferences-desktop-keyboard-shortcut
Type=Service
Type=Application
Exec=systemsettings kcm_keys
NoDisplay=true
Name=Shortcuts
Name[ar]=الاختصارات
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment