shell: Use a meson option to determine that we're in a sandbox
This commit is contained in:
parent
a1c48ce477
commit
ad83235bf9
2 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||
]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue