Add compatibility with the new libcloudproviders integration
authorCorentin Noël <corentin.noel@collabora.com>
Wed, 6 Sep 2023 14:04:15 +0000 (16:04 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Thu, 7 Sep 2023 08:22:46 +0000 (08:22 +0000)
Since libcloudproviders 0.3.3 it is possible to specify the interface name directly
in the .desktop file, and thus allowing it to be integrated when using a containerized
client.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
mirall.desktop.in
src/gui/CMakeLists.txt

index aa25464d1ccb962c4fc36eddaf189f1f8828d831..d7a8a95c4490c687992af8421aab4f9d504e8771 100644 (file)
@@ -197,7 +197,7 @@ Comment[lb]=@APPLICATION_NAME@ Desktop Synchronisatioun Client
 GenericName[lb]=Dossier Dync
 Name[lb]=@APPLICATION_NAME@ Desktop Sync Client
 Icon[lb]=@APPLICATION_ICON_NAME@
-
+@LIBCLOUDPROVIDERS_DESKTOP_IMPLEMENTS@
 
 [Desktop Action Quit]
 Exec=@APPLICATION_EXECUTABLE@ --quit
index e4af0e33a6fefd9b48412bf1bb9a4d5f2f57761a..0a89c6d307afc85e9d993cf548c2383db34b4184 100644 (file)
@@ -659,6 +659,12 @@ if(TARGET PkgConfig::CLOUDPROVIDERS)
       PkgConfig::GLIB2
       PkgConfig::GIO
     )
+
+    list(APPEND LIBCLOUDPROVIDERS_DESKTOP_IMPLEMENTS "Implements=org.freedesktop.CloudProviders\n")
+    list(APPEND LIBCLOUDPROVIDERS_DESKTOP_IMPLEMENTS "[org.freedesktop.CloudProviders]")
+    list(APPEND LIBCLOUDPROVIDERS_DESKTOP_IMPLEMENTS "BusName=${LIBCLOUDPROVIDERS_DBUS_BUS_NAME}")
+    list(APPEND LIBCLOUDPROVIDERS_DESKTOP_IMPLEMENTS "ObjectPath=${LIBCLOUDPROVIDERS_DBUS_OBJECT_PATH}")
+    list(JOIN LIBCLOUDPROVIDERS_DESKTOP_IMPLEMENTS "\n" LIBCLOUDPROVIDERS_DESKTOP_IMPLEMENTS)
 endif()
 
 ## handle DBUS for Fdo notifications