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.
This commit is contained in:
Christian Hergert
2019-05-24 00:46:43 -07:00
parent bfe72c1d77
commit 2c6044d7bb

View File

@ -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))