[gtk/wip/settings-portal: 1/3] Use a simpler sandbox check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/settings-portal: 1/3] Use a simpler sandbox check
- Date: Thu, 1 Nov 2018 23:50:38 +0000 (UTC)
commit 630ddea120b163a66b21a568d0de7098c4db91d9
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 1 13:31:10 2018 -0400
Use a simpler sandbox check
No need to use the runtime dir and allocate a string.
We can just check in /.
gdk/gdk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/gdk.c b/gdk/gdk.c
index b6c3bda972..6a8bb6dc82 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -272,7 +272,7 @@ gdk_running_in_sandbox (void)
char *path;
gboolean ret;
- path = g_build_filename (g_get_user_runtime_dir (), "flatpak-info", NULL);
+ path = g_build_filename ("/.flatpak-info", NULL);
ret = g_file_test (path, G_FILE_TEST_EXISTS);
g_free (path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]