diff --git a/deskutils/xdg-desktop-portal/Makefile b/deskutils/xdg-desktop-portal/Makefile index fa06f8744bc2..885660ef4111 100644 --- a/deskutils/xdg-desktop-portal/Makefile +++ b/deskutils/xdg-desktop-portal/Makefile @@ -1,43 +1,44 @@ PORTNAME= xdg-desktop-portal PORTVERSION= 1.20.0 +PORTREVISION= 1 CATEGORIES= deskutils MAINTAINER= arrowd@FreeBSD.org COMMENT= Portal frontend service for Flatpak WWW= https://github.com/flatpak/xdg-desktop-portal/ LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libfuse3.so:filesystems/fusefs-libs3 \ libgeoclue-2.so:net/geoclue \ libgudev-1.0.so.0:devel/libgudev \ libjson-glib-1.0.so:devel/json-glib \ libpipewire-0.3.so:multimedia/pipewire \ libportal.so:deskutils/libportal USES= gettext-tools gmake gnome meson pkgconfig python:build shebangfix USE_GITHUB= yes GH_ACCOUNT= flatpak USE_GNOME= gdkpixbuf glib20 MESON_ARGS= -Ddocumentation=disabled \ -Dflatpak-interfaces=disabled \ -Dsandboxed-image-validation=disabled \ -Dsandboxed-sound-validation=disabled \ -Dsystemd=disabled \ -Dtests=disabled SHEBANG_FILES= src/generate-method-info.py OPTIONS_DEFINE= MANPAGES MANPAGES_BUILD_DEPENDS= rst2man:textproc/py-docutils MANPAGES_MESON_ENABLED= man-pages OPTIONS_SUB= yes post-install: @${RM} -r ${STAGEDIR}${PREFIX}/lib/systemd .include diff --git a/deskutils/xdg-desktop-portal/files/patch-src_xdp-app-info-flatpak.c b/deskutils/xdg-desktop-portal/files/patch-src_xdp-app-info-flatpak.c index 9004dbe7be85..87b1b0af66f4 100644 --- a/deskutils/xdg-desktop-portal/files/patch-src_xdp-app-info-flatpak.c +++ b/deskutils/xdg-desktop-portal/files/patch-src_xdp-app-info-flatpak.c @@ -1,10 +1,21 @@ --- src/xdp-app-info-flatpak.c.orig 2025-02-19 15:48:35 UTC +++ src/xdp-app-info-flatpak.c @@ -25,6 +25,7 @@ #include #include +#include #ifdef HAVE_SYS_VFS_H #include #endif +@@ -643,6 +644,10 @@ open_flatpak_info (int pid, + open_flatpak_info (int pid, + GError **error) + { ++ g_set_error (error, XDP_APP_INFO_ERROR, XDP_APP_INFO_ERROR_WRONG_APP_KIND, ++ "Certainly not a flatpak"); ++ return -1; ++ + g_autofree char *root_path = NULL; + g_autofd int root_fd = -1; + g_autofd int info_fd = -1;