[recipes] Simplify the sandbox check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Simplify the sandbox check
- Date: Mon, 16 Jan 2017 15:01:15 +0000 (UTC)
commit 0fc8725065fda3f63cf7e7405db0f11b60d23ff7
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 16 10:00:25 2017 -0500
Simplify the sandbox check
No need to create a path, /.flatpak-info is at a fixed location.
Pointed out by Alex Larsson.
src/gr-app.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/gr-app.c b/src/gr-app.c
index 46232b0..01254f2 100644
--- a/src/gr-app.c
+++ b/src/gr-app.c
@@ -223,11 +223,7 @@ add_built_logo (GtkAboutDialog *about)
static gboolean
in_flatpak_sandbox (void)
{
- g_autofree char *path = NULL;
-
- path = g_build_filename (g_get_user_runtime_dir (), "flatpak-info", NULL);
-
- return g_file_test (path, G_FILE_TEST_EXISTS);
+ return g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]