From 53725cd5c994db13e5f514966b41d3fe6aabc4e6 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sun, 6 Oct 2024 10:48:04 +0300 Subject: [PATCH] Migrate to new configuration file-based DE portals declaration Since xdg-desktop-portal 1.18 it replaces the `UseIn` key. The obsolete key will be temporarily kept for compatibility reasons. Signed-off-by: Mavridis Philippe --- interfaces/CMakeLists.txt | 2 ++ interfaces/tde-portals.conf | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 interfaces/tde-portals.conf diff --git a/interfaces/CMakeLists.txt b/interfaces/CMakeLists.txt index f4bb8e2..be8c2e3 100644 --- a/interfaces/CMakeLists.txt +++ b/interfaces/CMakeLists.txt @@ -44,6 +44,8 @@ configure_file(xdg-desktop-portal-tde.desktop.cmake install(FILES tde.portal DESTINATION ${XDG_PREFIX}/share/xdg-desktop-portal/portals) +install(FILES tde-portals.conf DESTINATION ${XDG_PREFIX}/share/xdg-desktop-portal) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.impl.portal.desktop.tde.service DESTINATION ${DBUS_SESSION_DIRECTORY}) diff --git a/interfaces/tde-portals.conf b/interfaces/tde-portals.conf new file mode 100644 index 0000000..63c5c52 --- /dev/null +++ b/interfaces/tde-portals.conf @@ -0,0 +1,2 @@ +[preferred] +default=tde; \ No newline at end of file