[X2Go-Commits] [x2goplasmabindings] 03/04: CMakeLists.txt: also add the X-Plasma keys the metadata.desktop file we use for older operating systems.
git-admin at x2go.org
git-admin at x2go.org
Sun Aug 13 21:43:31 CEST 2023
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goplasmabindings.
commit abd1bb7446e3177106fe7e769fbabcd425fe6120
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sun Aug 13 21:34:44 2023 +0200
CMakeLists.txt: also add the X-Plasma keys the metadata.desktop file we use for older operating systems.
---
CMakeLists.txt | 26 ++++++++++++++++++++++++--
debian/changelog | 2 ++
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b632016..3c42eb4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -208,13 +208,35 @@ if (USE_PLASMA5)
endif (HAVE_ECMQMLMODULE)
if (USE_DESKTOP_FILE)
+ set (x_plasma_qml_ "X-Plasma-API=declarativeappletscript\n")
+ string (APPEND x_plasma_qml_ "X-Plasma-MainScript=ui/main.qml\n")
+ string (APPEND x_plasma_qml_ "X-Plasma-NotificationArea=true\n")
+ string (APPEND x_plasma_qml_
+ "X-Plasma-NotificationAreaCategory=ApplicationStatus\n"
+ )
+ file (READ
+ "${CMAKE_SOURCE_DIR}/plasma-applet-org.x2go.plasmoid.desktop"
+ plasmoid_desktop_file_content_
+ )
+ string (APPEND plasmoid_desktop_file_content_
+ "${x_plasma_qml_}"
+ )
+ file (WRITE
+ "${CMAKE_CURRENT_BINARY_DIR}/metadata-generated.desktop.in"
+ "${plasmoid_desktop_file_content_}"
+ )
+ configure_file (
+ "${CMAKE_CURRENT_BINARY_DIR}/metadata-generated.desktop.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/metadata-generated.desktop"
+ COPYONLY
+ )
add_custom_target (
CopyDesktopFile
ALL
BYPRODUCTS "${CMAKE_SOURCE_DIR}/package/metadata.desktop"
- COMMENT "Copying plasma-applet-org.x2go.plasmoid.desktop to package/metadata.desktop."
+ COMMENT "Copying metadata-generated.desktop to package/metadata.desktop."
COMMAND ${CMAKE_COMMAND} -E copy
- "${CMAKE_SOURCE_DIR}/plasma-applet-org.x2go.plasmoid.desktop"
+ "${CMAKE_CURRENT_BINARY_DIR}/metadata-generated.desktop"
"${CMAKE_SOURCE_DIR}/package/metadata.desktop"
VERBATIM
)
diff --git a/debian/changelog b/debian/changelog
index 8cccba0..6b35fcb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -59,6 +59,8 @@ x2goplasmabindings (3.0.2.3-0x2go1) UNRELEASED; urgency=medium
- package/metadata.json: add X-Plasma keys to make the QML stuff work.
- package/metadata.json: bump version to 1.0. This seems to be the minimum
version for QML plasmoids.
+ - CMakeLists.txt: also add the X-Plasma keys the metadata.desktop file we
+ use for older operating systems.
* x2goplasmabindings.spec:
+ Prepare for Plasma 5 support.
+ Stop duplicating Group tag.
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goplasmabindings.git
More information about the x2go-commits
mailing list