[gnome-desktop] Don't use bubblewrap in snaps since those are already sandboxed
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] Don't use bubblewrap in snaps since those are already sandboxed
- Date: Mon, 23 May 2022 15:58:05 +0000 (UTC)
commit 49e6a3b4304bf1f4a1cba8158c2fc5c8b3e016e9
Author: Sebastien Bacher <seb128 ubuntu com>
Date: Mon May 23 17:15:35 2022 +0200
Don't use bubblewrap in snaps since those are already sandboxed
libgnome-desktop/gnome-desktop-thumbnail-script.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/libgnome-desktop/gnome-desktop-thumbnail-script.c
b/libgnome-desktop/gnome-desktop-thumbnail-script.c
index 34669571..a3c8e800 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail-script.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail-script.c
@@ -948,6 +948,9 @@ script_exec_new (const char *uri,
else
exec->sandbox = SANDBOX_TYPE_NONE;
}
+ /* Similarly for snaps */
+ else if (g_getenv ("SNAP_NAME") != NULL)
+ exec->sandbox = SANDBOX_TYPE_NONE;
else
exec->sandbox = SANDBOX_TYPE_BWRAP;
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]