deskutils/xdg-desktop-portal: Restore a patch fixing Flatpak detection

PR:		285458
Reported by:	Thibault Payet <monwarez@mailoo.org>
This commit is contained in:
Gleb Popov 2025-03-17 10:55:15 +03:00
parent a204113e52
commit 173f9f7eca
2 changed files with 12 additions and 0 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= xdg-desktop-portal
PORTVERSION= 1.20.0
PORTREVISION= 1
CATEGORIES= deskutils
MAINTAINER= arrowd@FreeBSD.org

View file

@ -8,3 +8,14 @@
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#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;