From 2c6044d7bb58556cf71d5006d9e1976ac9fba1f9 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 24 May 2019 00:46:43 -0700 Subject: [PATCH] helpers: remove flatpak check for now We don't know if the file is sensitive or not, so we must go to the daemon for the contents. --- src/libsysprof/sysprof-helpers.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/libsysprof/sysprof-helpers.c b/src/libsysprof/sysprof-helpers.c index 92b7fda6..13e3ff1d 100644 --- a/src/libsysprof/sysprof-helpers.c +++ b/src/libsysprof/sysprof-helpers.c @@ -343,13 +343,6 @@ sysprof_helpers_get_proc_file (SysprofHelpers *self, g_return_val_if_fail (SYSPROF_IS_HELPERS (self), FALSE); g_return_val_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable), FALSE); - /* try locally first if we can */ - if (!g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS)) - { - if (helpers_get_proc_file (path, contents, &len)) - return TRUE; - } - if (self->proxy != NULL) { if (ipc_service_call_get_proc_file_sync (self->proxy, path, contents, cancellable, error))