summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-03-11 00:04:01 +0200
committerMavridis Philippe <mavridisf@gmail.com>2024-03-11 00:04:01 +0200
commitae92cf1205676d2ff0c344b2a1305e546d5dd0a5 (patch)
treeafd6629f325d5b5d7db141c5ffce99cd44bf7369
parent019b67712846254a59e24130d670eaa217e6589f (diff)
downloadxdg-desktop-portal-tde-ae92cf1205676d2ff0c344b2a1305e546d5dd0a5.tar.gz
xdg-desktop-portal-tde-ae92cf1205676d2ff0c344b2a1305e546d5dd0a5.zip
Fix installation prefix for XDG portal definition
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
-rw-r--r--CMakeLists.txt3
-rw-r--r--interfaces/CMakeLists.txt2
2 files changed, 4 insertions, 1 deletions
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})