mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
deskutils/xdg-desktop-portal: Restore a patch fixing Flatpak detection
PR: 285458 Reported by: Thibault Payet <monwarez@mailoo.org>
This commit is contained in:
parent
a204113e52
commit
173f9f7eca
2 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= xdg-desktop-portal
|
||||
PORTVERSION= 1.20.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= deskutils
|
||||
|
||||
MAINTAINER= arrowd@FreeBSD.org
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue