From ae92cf1205676d2ff0c344b2a1305e546d5dd0a5 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Mon, 11 Mar 2024 00:04:01 +0200 Subject: [PATCH] Fix installation prefix for XDG portal definition Signed-off-by: Mavridis Philippe --- CMakeLists.txt | 3 +++ interfaces/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93a23f2..9c6cd02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,9 @@ option( BUILD_ALL "Build all" ON ) option( BUILD_DOC "Build documentation" ${BUILD_ALL} ) # option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} ) +### Other options ############################################################## +set(XDG_PREFIX "/usr") + ### Configure checks ########################################################### include( ConfigureChecks.cmake ) diff --git a/interfaces/CMakeLists.txt b/interfaces/CMakeLists.txt index df05b75..f01262c 100644 --- a/interfaces/CMakeLists.txt +++ b/interfaces/CMakeLists.txt @@ -36,7 +36,7 @@ configure_file(org.freedesktop.impl.portal.desktop.tde.service.cmake configure_file(xdg-desktop-portal-tde.desktop.cmake xdg-desktop-portal-tde.desktop @ONLY) -install(FILES tde.portal DESTINATION ${SHARE_INSTALL_PREFIX}/xdg-desktop-portal/portals) +install(FILES tde.portal DESTINATION ${XDG_PREFIX}/share/xdg-desktop-portal/portals) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.impl.portal.desktop.tde.service DESTINATION ${DBUS_SESSION_DIRECTORY})