Commit 27266c6f authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Utilize kcmutils_generate_desktop_file cmake method

Task: https://phabricator.kde.org/T15609
parent ebe0c0a7
Pipeline #210654 passed with stage
in 55 seconds
......@@ -27,5 +27,6 @@ Dependencies:
'frameworks/kxmlgui': '@latest'
'frameworks/plasma-framework': '@latest'
'frameworks/solid': '@latest'
'frameworks/kcmutils': '@latest' # kcmutils_generate_desktop_file
Options:
require-passing-tests-on: [ 'Linux', 'FreeBSD']
......@@ -33,6 +33,7 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
KIO
Declarative
BluezQt
KCMUtils
)
find_package(SharedMimeInfo REQUIRED)
......
add_library(kcm_bluetooth MODULE bluetooth.cpp bluetooth.h)
kcmutils_generate_desktop_file(kcm_bluetooth)
kconfig_add_kcfg_files(kcm_bluetooth GENERATE_MOC
../settings/filereceiversettings.kcfgc)
......@@ -15,6 +16,4 @@ target_link_libraries(kcm_bluetooth
KF5::KIOGui
)
install(FILES kcm_bluetooth.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(TARGETS kcm_bluetooth DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/kcms/systemsettings)
kpackage_install_package(package kcm_bluetooth kcms)
......@@ -23,7 +23,7 @@
#include "filereceiversettings.h"
K_PLUGIN_CLASS_WITH_JSON(Bluetooth, "bluetooth.json")
K_PLUGIN_CLASS_WITH_JSON(Bluetooth, "kcm_bluetooth.json")
Bluetooth::Bluetooth(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
: KQuickAddons::ConfigModule(parent, data, args)
......
[Desktop Entry]
Type=Application
NoDisplay=true
Exec=systemsettings kcm_bluetooth
Icon=preferences-system-bluetooth
Name=Bluetooth
Name[ar]=بلوتوث
Name[ast]=Bluetooth
Name[az]=Bluetooth
Name[bg]=Bluetooth
Name[bs]=Blutut
Name[ca]=Bluetooth
Name[ca@valencia]=Bluetooth
Name[cs]=Bluetooth
Name[da]=Bluetooth
Name[de]=Bluetooth
Name[el]=Bluetooth
Name[en_GB]=Bluetooth
Name[es]=Bluetooth
Name[et]=Bluetooth
Name[eu]=Bluetooth
Name[fi]=Bluetooth
Name[fr]=Bluetooth
Name[gl]=Bluetooth
Name[he]=בלוטוס
Name[hsb]=Bluetooth
Name[hu]=Bluetooth
Name[ia]=Bluetooth
Name[id]=Bluetooth
Name[it]=Bluetooth
Name[ja]=Bluetooth
Name[ko]=블루투스
Name[lt]=Bluetooth
Name[nb]=Bluetooth
Name[nl]=Bluetooth
Name[nn]=Bluetooth
Name[pa]=ਬਲੂਟੁੱਥ
Name[pl]=Bluetooth
Name[pt]=Bluetooth
Name[pt_BR]=Bluetooth
Name[ro]=Bluetooth
Name[ru]=Bluetooth
Name[sk]=Bluetooth
Name[sl]=Bluetooth
Name[sr]=Блутут
Name[sr@ijekavian]=Блутут
Name[sr@ijekavianlatin]=Bluetooth
Name[sr@latin]=Bluetooth
Name[sv]=Blåtand
Name[tg]=Bluetooth
Name[tr]=Bluetooth
Name[uk]=Bluetooth
Name[x-test]=xxBluetoothxx
Name[zh_CN]=蓝牙
Name[zh_TW]=藍牙
Comment=Manage Bluetooth devices
Comment[ar]=أدر أجهزة بلوتوث
Comment[ast]=Xestiona preseos Bluetooth
Comment[az]=Bluetooth Cihazlarının İdarə edilməsi
Comment[bg]=Управление на Bluetooth устройства
Comment[ca]=Gestiona els dispositius Bluetooth
Comment[ca@valencia]=Gestiona els dispositius Bluetooth
Comment[cs]=Spravovat zařízení Bluetooth
Comment[de]=Bluetooth-Geräte verwalten
Comment[el]=Διαχείριση συσκευών Bluetooth
Comment[en_GB]=Manage Bluetooth devices
Comment[es]=Gestión de dispositivos Bluetooth
Comment[et]=Bluetoothi seadmete haldamine
Comment[eu]=Kudeatu Bluetooth gailuak
Comment[fi]=Hallitse Bluetooth-laitteita
Comment[fr]=Gérer les périphériques « Bluetooth »
Comment[hsb]=Bluetooth-graty rjadować
Comment[hu]=Bluetooth eszközök kezelése
Comment[ia]=Gere dispositivos bluetooth
Comment[id]=Kelola perangkat Bluetooth
Comment[it]=Gestisci i dispositivi Bluetooth
Comment[ko]=블루투스 장치 관리
Comment[lt]=Tvarkyti Bluetooth įrenginius
Comment[nl]=Bluetooth-apparaten beheren
Comment[nn]=Handsam Bluetooth-einingar
Comment[pa]=ਬਲੂਟੁੱਥ ਡਿਵਾਈਸ ਦਾ ਇੰਤਜ਼ਾਮ
Comment[pl]=Zarządzanie urządzeniami Bluetooth
Comment[pt]=Gerir os dispositivos Bluetooth
Comment[pt_BR]=Gerenciar dispositivos Bluetooth
Comment[ro]=Gestionează dispozitive Bluetooth
Comment[ru]=Управление устройствами Bluetooth
Comment[sk]=Spravovať Bluetooth zariadenia
Comment[sl]=Upravljaj z napravami Bluetooth
Comment[sv]=Hantera Blåtandsenheter
Comment[tr]=Bluetooth Aygıtlarını Yönet
Comment[uk]=Керування пристроями Bluetooth
Comment[x-test]=xxManage Bluetooth devicesxx
Comment[zh_CN]=管理蓝牙设备
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