Commit 36e8c1da authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Utilize kcmutils_generate_desktop_file cmake method

Task: https://phabricator.kde.org/T15609
parent 4d9cbb52
Pipeline #210648 passed with stage
in 1 minute and 53 seconds
......@@ -4,7 +4,7 @@ set(PROJECT_VERSION "5.25.80")
cmake_minimum_required(VERSION 3.16)
set(QT_MIN_VERSION "5.15.0")
set(KF5_MIN_VERSION "5.90")
set(KF5_MIN_VERSION "5.97")
set(KDE_COMPILERSETTINGS_LEVEL "5.82")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
......
......@@ -26,6 +26,7 @@ set(kcm_SRCS
kcoreaddons_add_plugin(kcm_about-distro SOURCES ${kcm_SRCS} INSTALL_NAMESPACE "plasma/kcms")
kcmutils_generate_desktop_file(kcm_about-distro)
target_link_libraries(kcm_about-distro
KF5::CoreAddons
KF5::I18n
......@@ -37,4 +38,3 @@ target_link_libraries(kcm_about-distro
KF5::AuthCore)
kpackage_install_package(package kcm_about-distro kcms)
install(FILES kcm_about-distro.desktop DESTINATION ${KDE_INSTALL_APPDIR})
[Desktop Entry]
Type=Application
NoDisplay=true
Icon=ktip
Exec=kinfocenter kcm_about-distro
Name=About this System
Name[az]=Bu sistem haqqında
Name[bg]=За системата
Name[ca]=Quant a aquest sistema
Name[ca@valencia]=Quant a este sistema
Name[cs]=O tomto systému
Name[de]=Über dieses System
Name[el]=Σχετικά με αυτό το σύστημα
Name[en_GB]=About this System
Name[es]=Acerca de este sistema
Name[eu]=Sistema honi buruz
Name[fi]=Tietoa tästä järjestelmästä
Name[fr]=À propos de ce système
Name[ia]=Re iste systema
Name[id]=Tentang Sistem Ini
Name[it]=Informazioni sul sistema
Name[ja]=このシステムについて
Name[ka]=ამ სისტემის შესახებ
Name[ko]=이 시스템 정보
Name[lt]=Apie šią sistemą
Name[nl]=Over dit systeem
Name[nn]=Om dette systemet
Name[pl]=O tym systemie
Name[pt]=Acerca deste Sistema
Name[pt_BR]=Sobre este sistema
Name[ro]=Despre acest sistem
Name[sk]=O tomto systéme
Name[sl]=O tem sistemu
Name[sv]=Om systemet
Name[tg]=Иттилоот дар бораи низоми ҷорӣ
Name[tr]=Sistem Hakkında
Name[uk]=Про цю систему
Name[vi]=Về hệ thống này
Name[x-test]=xxAbout this Systemxx
Name[zh_CN]=关于此系统
......@@ -339,6 +339,6 @@ private:
const bool m_isThisKInfoCenter = qGuiApp->desktopFileName() == QLatin1String("org.kde.kinfocenter");
};
K_PLUGIN_CLASS_WITH_JSON(KCMAboutSystem, "about-distro.json")
K_PLUGIN_CLASS_WITH_JSON(KCMAboutSystem, "kcm_about-distro.json")
#include "main.moc"
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