Use KPackage macro for installing plasmoid

The macro does some extra stuff under the hood, like converting the metadata.desktop to json, which makes loading the plasmoid a bit faster
This commit is contained in:
Nicolas Fella 2021-07-29 16:00:29 +02:00
parent a3082de593
commit ab7b805da1
2 changed files with 2 additions and 2 deletions

View file

@ -71,6 +71,7 @@ else()
) )
if(UNIX AND NOT APPLE) if(UNIX AND NOT APPLE)
find_package(KF5Package REQUIRED)
find_package(KF5PulseAudioQt) find_package(KF5PulseAudioQt)
endif() endif()

View file

@ -1,5 +1,4 @@
install(DIRECTORY package/ kpackage_install_package(package org.kde.kdeconnect plasmoids plasma NO_DEPRECATED_WARNING)
DESTINATION ${DATA_INSTALL_DIR}/plasma/plasmoids/org.kde.kdeconnect)
install(FILES package/metadata.desktop install(FILES package/metadata.desktop
DESTINATION ${SERVICES_INSTALL_DIR} DESTINATION ${SERVICES_INSTALL_DIR}