Commit 284a65fd authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Port to KCM desktop file generation method from kcmutils

Depends on frameworks/kcmutils!94

Task: https://phabricator.kde.org/T15609
parent 7b2fe82f
Pipeline #206235 passed with stage
in 6 minutes and 13 seconds
......@@ -8,6 +8,7 @@ set(kcm_autostart_PART_SRCS
autostart.h)
kcoreaddons_add_plugin(kcm_autostart SOURCES ${kcm_autostart_PART_SRCS} INSTALL_NAMESPACE "plasma/kcms/systemsettings")
kcmutils_generate_desktop_file (kcm_autostart)
target_link_libraries(kcm_autostart KF5::I18n KF5::KIOCore KF5::KIOWidgets KF5::QuickAddons PW::KWorkspace)
......@@ -17,5 +18,4 @@ ecm_qt_declare_logging_category(kcm_autostart
CATEGORY_NAME org.kde.plasma.kcm_autostart
)
install(FILES kcm_autostart.desktop DESTINATION ${KDE_INSTALL_APPDIR})
kpackage_install_package(package kcm_autostart kcms)
[Desktop Entry]
Name=Autostart
Name[ar]=بدء تلقائي
Name[az]=Avtomatik başlama
Name[bg]=Автоматично стартиране
Name[ca]=Inici automàtic
Name[ca@valencia]=Inici automàtic
Name[cs]=Automatické spuštění
Name[da]=Autostart
Name[de]=Autostart
Name[en_GB]=Autostart
Name[es]=Inicio automático
Name[eu]=Abio automatikoa
Name[fi]=Automaattikäynnistys
Name[fr]=Démarrage automatique
Name[hi]=स्वतः चालू
Name[hsb]=Awtostart
Name[hu]=Automatikus indítás
Name[ia]=Auto starta
Name[id]=Auto Mulai
Name[it]=Avvio automatico
Name[ka]=ავტოსტარტი
Name[ko]=자동 시작
Name[lt]=Automatinis paleidimas
Name[ml]=സ്വയം തുടങ്ങുന്നവ
Name[nl]=Autostart
Name[nn]=Autostart
Name[pa]=ਆਟੋ-ਸਟਾਰਟ
Name[pl]=Samouruchamiane
Name[pt]=Arranque
Name[pt_BR]=Iniciar automaticamente
Name[ro]=Pornire automată
Name[ru]=Автозапуск
Name[sk]=Automatické spustenie
Name[sl]=Samodejni zagon
Name[sv]=Automatisk start
Name[ta]=சுயதுவக்கம்
Name[tr]=Otomatik başlat
Name[uk]=Автозапуск
Name[vi]=Khởi động tự động
Name[x-test]=xxAutostartxx
Name[zh_CN]=自动启动
Name[zh_TW]=自動啟動
Encoding=UTF-8
Type=Application
Exec=systemsettings kcm_autostart
NoDisplay=true
Icon=system-run
......@@ -44,6 +44,7 @@ kcmutils_generate_module_data(
kconfig_add_kcfg_files(kcm_colors_SRCS colorssettings.kcfgc GENERATE_MOC)
kcoreaddons_add_plugin(kcm_colors SOURCES ${kcm_colors_SRCS} INSTALL_NAMESPACE "plasma/kcms/systemsettings")
kcmutils_generate_desktop_file (kcm_colors)
target_link_libraries(kcm_colors
Qt::DBus
KF5::KCMUtils
......@@ -121,7 +122,6 @@ else()
endif()
install(FILES colorssettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
install(FILES kcm_colors.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(TARGETS plasma-apply-colorscheme DESTINATION ${KDE_INSTALL_BINDIR})
install(FILES colorschemes.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
......
[Desktop Entry]
Name=Colors
Name[ar]=الألوان
Name[ast]=Colores
Name[az]=Rənglər
Name[bg]=Цветове
Name[ca]=Colors
Name[ca@valencia]=Colors
Name[cs]=Barvy
Name[da]=Farver
Name[de]=Farben
Name[en_GB]=Colours
Name[es]=Colores
Name[et]=Värvid
Name[eu]=Koloreak
Name[fi]=Värit
Name[fr]=Couleurs
Name[hi]=रंग
Name[hsb]=Barby
Name[hu]=Színek
Name[ia]=Colores
Name[id]=Warna
Name[it]=Colori
Name[ja]=色
Name[ka]=ფერები
Name[ko]=색상
Name[lt]=Spalvos
Name[ml]=നിറങ്ങള്‍
Name[nl]=Kleuren
Name[nn]=Fargar
Name[pa]=ਰੰਗ
Name[pl]=Kolory
Name[pt]=Cores
Name[pt_BR]=Cores
Name[ro]=Culori
Name[ru]=Цвета
Name[sk]=Farby
Name[sl]=Barve
Name[sv]=Färger
Name[ta]=நிறங்கள்
Name[tg]=Рангҳо
Name[tr]=Renkler
Name[uk]=Кольори
Name[vi]=Màu
Name[x-test]=xxColorsxx
Name[zh_CN]=颜色
Name[zh_TW]=顏色
Icon=preferences-desktop-color
Type=Application
Exec=systemsettings kcm_colors
NoDisplay=true
......@@ -28,6 +28,7 @@ kcmutils_generate_module_data(
kconfig_add_kcfg_files(kcm_cursortheme_PART_SRCS cursorthemesettings.kcfgc GENERATE_MOC)
kcoreaddons_add_plugin(kcm_cursortheme SOURCES ${kcm_cursortheme_PART_SRCS} INSTALL_NAMESPACE "plasma/kcms/systemsettings")
kcmutils_generate_desktop_file (kcm_cursortheme)
target_link_libraries(kcm_cursortheme
......@@ -102,7 +103,6 @@ install(TARGETS plasma-apply-cursortheme DESTINATION ${KDE_INSTALL_BINDIR})
install(FILES cursorthemesettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
install(FILES delete_cursor_old_default_size.upd delete_cursor_old_default_size.pl DESTINATION ${KDE_INSTALL_DATADIR}/kconf_update)
install( FILES kcm_cursortheme.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
install( FILES xcursor/xcursor.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} )
kpackage_install_package(package kcm_cursortheme kcms)
......
[Desktop Entry]
Icon=preferences-desktop-cursors
Type=Application
Exec=systemsettings kcm_cursortheme
NoDisplay=true
Name=Cursors
Name[ar]=المؤشرات
Name[ast]=Cursores
Name[az]=Kursorlar
Name[bg]=Курсори
Name[ca]=Cursors
Name[ca@valencia]=Cursors
Name[cs]=Kurzory
Name[da]=Markører
Name[de]=Zeiger
Name[en_GB]=Cursors
Name[es]=Cursores
Name[et]=Kursorid
Name[eu]=Kurtsoreak
Name[fi]=Osoittimet
Name[fr]=Pointeurs
Name[hi]=कर्सर
Name[hsb]=Cursory
Name[hu]=Kurzorok
Name[ia]=Cursores
Name[id]=Kursor
Name[it]=Puntatori
Name[ja]=カーソル
Name[ka]=კურსორები
Name[ko]=커서
Name[lt]=Žymekliai
Name[ml]=ചൂണ്ടുവിരലുകൾ
Name[nl]=Cursors
Name[nn]=Peikarar
Name[pa]=ਕਰਸਰਾਂ
Name[pl]=Wskaźniki
Name[pt]=Cursores
Name[pt_BR]=Cursores
Name[ro]=Cursori
Name[ru]=Курсоры мыши
Name[sk]=Kurzory
Name[sl]=Kazalke
Name[sv]=Pekare
Name[ta]=சுட்டிக்குறிகள்
Name[tg]=Курсорҳои муш
Name[tr]=İmleçler
Name[uk]=Вказівники
Name[vi]=Con trỏ
Name[x-test]=xxCursorsxx
Name[zh_CN]=光标
Name[zh_TW]=滑鼠游標
......@@ -48,7 +48,6 @@ target_link_libraries(plasma-apply-desktoptheme
)
#this desktop file is installed only for retrocompatibility with sycoca
install(FILES kcm_desktoptheme.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES plasma-themes.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
install(TARGETS plasma-apply-desktoptheme DESTINATION ${KDE_INSTALL_BINDIR})
......
......@@ -12,6 +12,7 @@ kcmutils_generate_module_data(
kconfig_add_kcfg_files(kcm_feedback_PART_SRCS feedbacksettings.kcfgc GENERATE_MOC)
kcoreaddons_add_plugin(kcm_feedback SOURCES ${kcm_feedback_PART_SRCS} INSTALL_NAMESPACE "plasma/kcms/systemsettings")
kcmutils_generate_desktop_file (kcm_feedback)
target_link_libraries(kcm_feedback
KF5::I18n
......@@ -27,5 +28,4 @@ ecm_qt_declare_logging_category(kcm_feedback
)
install(FILES feedbacksettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
install(FILES kcm_feedback.desktop DESTINATION ${KDE_INSTALL_APPDIR})
kpackage_install_package(package kcm_feedback kcms)
[Desktop Entry]
Icon=preferences-desktop-feedback
Type=Application
Exec=systemsettings kcm_feedback
NoDisplay=true
Name=User Feedback
Name[ar]=مشاركة بياناتك
Name[ast]=Comentarios d'usuariu
Name[az]=İstifadəçi Rəyi
Name[bg]=Обратна връзка
Name[ca]=Comentaris de l'usuari
Name[ca@valencia]=Comentaris de l'usuari
Name[cs]=Zpětná vazba uživatele
Name[da]=Brugerfeedback
Name[de]=Benutzer-Feedback
Name[en_GB]=User Feedback
Name[es]=Comentarios del usuario
Name[et]=Kasutaja tagasiside
Name[eu]=Erabiltzaileen berrelikadura
Name[fi]=Käyttäjäpalaute
Name[fr]=Retours des utilisateurs
Name[gl]=Achegas de usuario
Name[hi]=उपयोक्ता प्रतिक्रिया
Name[hu]=Felhasználói visszajelzés
Name[ia]=Responsa del usator
Name[id]=Tanggapan Pengguna
Name[it]=Segnalazioni dell'utente
Name[ja]=ユーザ フィードバック
Name[ka]=მომხარებლის უკუკავშირი
Name[ko]=사용자 피드백
Name[lt]=Naudotojo grįžtamasis ryšys
Name[ml]=ഉപയോക്തൃ അഭിപ്രായം
Name[nl]=Terugkoppeling van gebruiker
Name[nn]=Tilbakemeldingar
Name[pa]=ਵਰਤੋਂਕਾਰ ਸੁਝਾਅ
Name[pl]=Informacja zwrotna
Name[pt]=Reacções do Utilizador
Name[pt_BR]=Comentários dos usuários
Name[ro]=Reacții utilizator
Name[ru]=Обратная связь
Name[sk]=Používateľská odozva
Name[sl]=Uporabnikov odziv
Name[sv]=Användaråterkoppling
Name[ta]=பயனர் பின்னூட்டம்
Name[tg]=Изҳори назари корбар
Name[tr]=Kullanıcı Geri Bildirimi
Name[uk]=Відгуки користувача
Name[vi]=Phản hồi của người dùng
Name[x-test]=xxUser Feedbackxx
Name[zh_CN]=用户反馈
Name[zh_TW]=使用者意見回應
......@@ -24,6 +24,7 @@ kcmutils_generate_module_data(
kconfig_add_kcfg_files(kcm_fonts_PART_SRCS fontssettings.kcfgc fontsaasettingsbase.kcfgc GENERATE_MOC)
kcoreaddons_add_plugin(kcm_fonts SOURCES ${kcm_fonts_PART_SRCS} INSTALL_NAMESPACE "plasma/kcms/systemsettings")
kcmutils_generate_desktop_file (kcm_fonts)
target_link_libraries(kcm_fonts KF5::I18n KF5::WindowSystem KF5::KCMUtils KF5::QuickAddons KF5::Declarative kfontinst krdb)
......@@ -38,7 +39,6 @@ endif()
########### install files ###############
install(FILES fontssettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
install(FILES kcm_fonts.desktop DESTINATION ${KDE_INSTALL_APPDIR})
kpackage_install_package(package kcm_fonts kcms)
add_custom_command(TARGET kcm_fonts POST_BUILD
......
[Desktop Entry]
Icon=preferences-desktop-font
Type=Application
Exec=systemsettings kcm_fonts
NoDisplay=true
Name=Fonts
Name[ar]=الخطوط
Name[az]=Şriftlər
Name[bg]=Шрифтове
Name[ca]=Tipus de lletra
Name[ca@valencia]=Tipus de lletra
Name[cs]=Písma
Name[da]=Skrifttyper
Name[de]=Schriftarten
Name[en_GB]=Fonts
Name[es]=Tipos de letra
Name[et]=Fondid
Name[eu]=Letra-tipoak
Name[fi]=Fontit
Name[fr]=Polices
Name[hi]=फ़ॉन्ट्स
Name[hsb]=Pisma
Name[hu]=Betűkészletek
Name[ia]=Fontes
Name[id]=Font
Name[it]=Caratteri
Name[ja]=フォント
Name[ka]=ფონტები
Name[ko]=글꼴
Name[lt]=Šriftai
Name[ml]=ഫോണ്ടുകൾ
Name[nl]=Lettertypen
Name[nn]=Skrifter
Name[pa]=ਫੋਂਟ
Name[pl]=Czcionki
Name[pt]=Tipos de Letra
Name[pt_BR]=Fontes
Name[ro]=Fonturi
Name[ru]=Шрифты
Name[sk]=Písma
Name[sl]=Pisave
Name[sv]=Teckensnitt
Name[ta]=எழுத்துருக்கள்
Name[tg]=Ҳуруф
Name[tr]=Yazıtipleri
Name[uk]=Шрифти
Name[vi]=Phông chữ
Name[x-test]=xxFontsxx
Name[zh_CN]=字体
Name[zh_TW]=字型
......@@ -14,6 +14,7 @@ kcmutils_generate_module_data(
kconfig_add_kcfg_files(kcm_icons_PART_SRCS iconssettingsbase.kcfgc GENERATE_MOC)
kcoreaddons_add_plugin(kcm_icons SOURCES ${kcm_icons_PART_SRCS} INSTALL_NAMESPACE "plasma/kcms/systemsettings")
kcmutils_generate_desktop_file (kcm_icons )
target_link_libraries(kcm_icons
Qt::Widgets
......@@ -43,7 +44,6 @@ ecm_qt_declare_logging_category(plasma-changeicons
install(FILES iconssettingsbase.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
install(FILES icons_remove_effects.upd DESTINATION ${KDE_INSTALL_DATADIR}/kconf_update)
install(FILES kcm_icons.desktop DESTINATION ${KDE_INSTALL_APPDIR})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/icons.knsrc ${CMAKE_BINARY_DIR}/icons.knsrc)
install( FILES ${CMAKE_BINARY_DIR}/icons.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} )
......
[Desktop Entry]
Icon=preferences-desktop-icons
Type=Application
Exec=systemsettings kcm_icons
NoDisplay=true
Name=Icons
Name[ar]=الأيقونات
Name[ast]=Iconos
Name[az]=Nişanlar
Name[bg]=Икони
Name[ca]=Icones
Name[ca@valencia]=Icones
Name[cs]=Ikony
Name[da]=Ikoner
Name[de]=Symbole
Name[en_GB]=Icons
Name[es]=Iconos
Name[et]=Ikoonid
Name[eu]=Ikonoak
Name[fi]=Kuvakkeet
Name[fr]=Icônes
Name[hi]=प्रतीक
Name[hsb]=Piktogramy
Name[hu]=Ikonok
Name[ia]=Icones
Name[id]=Ikon
Name[it]=Icone
Name[ja]=アイコン
Name[ka]=ხატულები
Name[ko]=아이콘
Name[lt]=Piktogramos
Name[ml]=ചിഹ്നങ്ങൾ
Name[nl]=Pictogrammen
Name[nn]=Ikon
Name[pa]=ਆਈਕਾਨ
Name[pl]=Ikony
Name[pt]=Ícones
Name[pt_BR]=Ícones
Name[ro]=Pictograme
Name[ru]=Значки
Name[sk]=Ikony
Name[sl]=Ikone
Name[sv]=Ikoner
Name[ta]=சின்னங்கள்
Name[tg]=Нишонаҳо
Name[tr]=Simgeler
Name[uk]=Піктограми
Name[vi]=Biểu tượng
Name[x-test]=xxIconsxx
Name[zh_CN]=图标
Name[zh_TW]=圖示
......@@ -4,6 +4,7 @@ set(kcm_fontinst_PART_SRCS ${libkfontinstview_SRCS} ${libkfontinstjobrunner_SRCS
# qt_add_dbus_interface(kcm_fontinst_PART_SRCS ../dbus/org.kde.fontinst.xml FontinstIface)
kcoreaddons_add_plugin(kcm_fontinst SOURCES ${kcm_fontinst_PART_SRCS} INSTALL_NAMESPACE "plasma/kcms/systemsettings_qwidgets")
kcmutils_generate_desktop_file(kcm_fontinst)
target_link_libraries(kcm_fontinst
KF5::Archive
......@@ -18,7 +19,6 @@ target_link_libraries(kcm_fontinst
X11::X11
)
install( FILES kcm_fontinst.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
install( FILES kfontinst.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} )
ecm_install_icons( ICONS
......
......@@ -54,7 +54,7 @@
#define CFG_GROUP_SPLITTER_SIZES "GroupSplitterSizes"
#define CFG_FONT_SIZE "FontSize"
K_PLUGIN_CLASS_WITH_JSON(KFI::CKCmFontInst, "fontinst.json")
K_PLUGIN_CLASS_WITH_JSON(KFI::CKCmFontInst, "kcm_fontinst.json")
namespace KFI
{
......
[Desktop Entry]
Icon=preferences-desktop-font-installer
Type=Application
Exec=systemsettings kcm_fontinst
NoDisplay=true
Name=Font Management
Name[ar]=إدارة الخطوط
Name[ast]=Xestión de fontes
Name[az]=Şrift İdarəeetməsi
Name[bg]=Управление на шрифтове
Name[ca]=Gestió dels tipus de lletra
Name[ca@valencia]=Gestió dels tipus de lletra
Name[cs]=Správa písem
Name[da]=Håndtering af skrifttyper
Name[de]=Schriftarten-Verwaltung
Name[en_GB]=Font Management
Name[es]=Gestión de tipos de letra
Name[et]=Fondihaldus
Name[eu]=Letra-tipo kudeaketa
Name[fi]=Fontinhallinta
Name[fr]=Gestion des polices de caractères
Name[hi]=फ़ॉन्ट प्रबंधन
Name[hu]=Betűtípus-kezelés
Name[ia]=Gestion de font
Name[id]=Pengelolaan Font
Name[it]=Gestione dei caratteri
Name[ja]=フォント管理
Name[ka]=ფონტების მართვა
Name[ko]=글꼴 관리
Name[lt]=Šriftų tvarkymas
Name[ml]=അക്ഷരസഞ്ചയ മാനേജ്മെന്റ്
Name[nl]=Lettertypenbeheer
Name[nn]=Skrift­handsaming
Name[pa]=ਫੋਂਟ ਇੰਤਜ਼ਾਮ
Name[pl]=Zarządzanie czcionkami
Name[pt]=Gestão dos Tipos de Letra
Name[pt_BR]=Gerenciamento de fontes
Name[ro]=Gestiune fonturi
Name[ru]=Управление шрифтами
Name[sk]=Správa písma
Name[sl]=Upravljanje pisav
Name[sv]=Teckensnittshantering
Name[ta]=எழுத்துரு மேலாண்மை
Name[tg]=Мудири ҳарфҳо
Name[tr]=Yazıtipi Yönetimi
Name[uk]=Керування шрифтами
Name[vi]=Quản lí phông chữ
Name[x-test]=xxFont Managementxx
Name[zh_CN]=字体管理
Name[zh_TW]=字型管理
......@@ -74,11 +74,10 @@ target_link_libraries(kcm_lookandfeel_objects
)
kcoreaddons_add_plugin(kcm_lookandfeel SOURCES kcmmain.cpp INSTALL_NAMESPACE "plasma/kcms/systemsettings")
kcmutils_generate_desktop_file(kcm_lookandfeel)
target_link_libraries(kcm_lookandfeel kcm_lookandfeel_objects)
#this desktop file is installed only for retrocompatibility with sycoca
install(FILES lookandfeelsettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
install(FILES kcm_lookandfeel.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES lookandfeel.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
if(BUILD_TESTING)
......
[Desktop Entry]
Icon=preferences-desktop-theme-global
Type=Application
Exec=systemsettings kcm_lookandfeel
NoDisplay=true
Name=Global Theme
Name[ar]=سمة شاملة
Name[ast]=Estilu global
Name[az]=Qlobal Plasma Görünüşü
Name[bg]=Глобална тема
Name[ca]=Tema global
Name[ca@valencia]=Tema global
Name[cs]=Celkový motiv
Name[da]=Globalt tema
Name[de]=Globales Design
Name[en_GB]=Global Theme
Name[es]=Tema global
Name[et]=Globaalne teema
Name[eu]=Gai orokorra
Name[fi]=Yleisteema
Name[fr]=Thème global
Name[hi]=वैश्विक प्रसंग
Name[hsb]=Globalna tema
Name[hu]=Globális téma
Name[ia]=Thema Global
Name[id]=Tema Global
Name[it]=Tema globale
Name[ka]=გლობალური თემა
Name[ko]=전역 테마
Name[lt]=Visuotinis apipavidalinimas
Name[ml]=ആഗോള തീം
Name[nl]=Globaal thema
Name[nn]=Globalt tema
Name[pa]=ਗਲੋਬਲ ਥੀਮ
Name[pl]=Globalny wygląd
Name[pt]=Tema Global
Name[pt_BR]=Tema global
Name[ro]=Tematică globală
Name[ru]=Оформление рабочей среды
Name[sk]=Globálna téma
Name[sl]=Globalna tema
Name[sv]=Globalt tema
Name[ta]=பொதுவான தோற்றத்திட்டம்
Name[tg]=Мавзӯи умумӣ
Name[tr]=Global Tema
Name[uk]=Загальна тема
Name[vi]=Chủ đề toàn cục
Name[x-test]=xxGlobal Themexx
Name[zh_CN]=全局主题
Name[zh_TW]=全域主題
......@@ -18,6 +18,7 @@ kcmutils_generate_module_data(
kconfig_add_kcfg_files(kcm_nightcolor_SRCS nightcolorsettings.kcfgc GENERATE_MOC)
kcoreaddons_add_plugin(kcm_nightcolor SOURCES ${kcm_nightcolor_SRCS} INSTALL_NAMESPACE "plasma/kcms/systemsettings")
kcmutils_generate_desktop_file(kcm_nightcolor)
target_link_libraries(kcm_nightcolor
KF5::QuickAddons
......@@ -26,7 +27,4 @@ target_link_libraries(kcm_nightcolor
PW::LibColorCorrect
)
#this desktop file is installed only for retrocompatibility with sycoca
install(FILES kcm_nightcolor.desktop DESTINATION ${KDE_INSTALL_APPDIR})
kpackage_install_package(package kcm_nightcolor kcms)
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