mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
sysprof-cli: check for /var/run/host
Give users some info if there is a good chance their decode will be bad.
This commit is contained in:
@ -433,6 +433,13 @@ Examples:\n\
|
||||
}
|
||||
}
|
||||
|
||||
/* Warn about access if we're in a container */
|
||||
if (g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS))
|
||||
{
|
||||
if (!g_file_test ("/var/run/host/usr", G_FILE_TEST_EXISTS))
|
||||
g_printerr ("Warning: Flatpak detected but cannot access host, set --filesystem=host\n");
|
||||
}
|
||||
|
||||
profiler = sysprof_profiler_new ();
|
||||
|
||||
if (argc == 2)
|
||||
|
||||
Reference in New Issue
Block a user