From fda8f2c2571c95de90e0822741fcb2e640049d83 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Fri, 16 Apr 2021 12:44:03 +0100
Subject: [PATCH] pv-wrap: Assume that Flatpak 1.11.x is at least
 1.10.1-80-gcb47d83b

All the features we need seem to have been merged into Flatpak
git master. If people are running a git snapshot, let's assume it's
the right git snapshot.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 pressure-vessel/wrap-flatpak.c | 21 +--------------------
 1 file changed, 1 insertion(+), 20 deletions(-)

diff --git a/pressure-vessel/wrap-flatpak.c b/pressure-vessel/wrap-flatpak.c
index 20519a9af..fbf45c5e0 100644
--- a/pressure-vessel/wrap-flatpak.c
+++ b/pressure-vessel/wrap-flatpak.c
@@ -156,7 +156,7 @@ pv_wrap_check_flatpak (const char *tools_dir,
       g_auto(GStrv) filesystems = NULL;
 
       g_warning ("Using experimental Flatpak sub-sandboxing "
-                 "(requires Flatpak 1.11.x commit 1.10.1-65-g3ebf371f "
+                 "(requires Flatpak 1.11.x commit 1.10.1-80-gcb47d83b "
                  "or later)");
       subsandbox = get_subsandbox_adverb (launch_executable);
 
@@ -190,25 +190,6 @@ pv_wrap_check_flatpak (const char *tools_dir,
                      "(flatpak#4214). "
                      "The Steam Overlay will not work.");
         }
-
-      if (filesystems != NULL
-          && g_strv_contains ((const char * const *) filesystems, "/tmp"))
-        {
-          g_debug ("OK: /tmp shared with host");
-        }
-      else if (features != NULL
-               && g_strv_contains ((const char * const *) features,
-                                   "per-app-dev-shm"))
-        {
-          g_debug ("OK: assuming that per-app-ID /dev/shm (flatpak#4214) "
-                   "implies per-app-ID /tmp (flatpak#4093)");
-        }
-      else
-        {
-          g_warning ("Cannot tell whether /tmp is shared between app "
-                     "instances (flatpak#4093). "
-                     "The Steam Overlay browser might not work.");
-        }
     }
   /* Deliberately not documented: only people who are in a position
    * to run their own modified versions of Flatpak and pressure-vessel
-- 
GitLab