shell: Use a meson option to determine that we're in a sandbox

This commit is contained in:
Felipe Borges 2019-10-08 18:36:37 +02:00 committed by Robert Ancell
parent a1c48ce477
commit ad83235bf9
2 changed files with 2 additions and 1 deletions

View file

@ -41,6 +41,7 @@ set_defines = [
['PACKAGE', meson.project_name()],
['PACKAGE_VERSION', meson.project_version()],
['VERSION', meson.project_version()],
['PROFILE', get_option('profile')],
# i18n
['GETTEXT_PACKAGE', control_center_gettext]
]

View file

@ -102,7 +102,7 @@ enum
static gboolean
in_flatpak_sandbox (void)
{
return g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS);
return g_strcmp0 (PROFILE, "development") == 0;
}
static void