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', meson.project_name()],
|
||||||
['PACKAGE_VERSION', meson.project_version()],
|
['PACKAGE_VERSION', meson.project_version()],
|
||||||
['VERSION', meson.project_version()],
|
['VERSION', meson.project_version()],
|
||||||
|
['PROFILE', get_option('profile')],
|
||||||
# i18n
|
# i18n
|
||||||
['GETTEXT_PACKAGE', control_center_gettext]
|
['GETTEXT_PACKAGE', control_center_gettext]
|
||||||
]
|
]
|
||||||
|
|
|
@ -102,7 +102,7 @@ enum
|
||||||
static gboolean
|
static gboolean
|
||||||
in_flatpak_sandbox (void)
|
in_flatpak_sandbox (void)
|
||||||
{
|
{
|
||||||
return g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS);
|
return g_strcmp0 (PROFILE, "development") == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue