[libadwaita/msvc: 9/11] settings: Don't check for Flatpak on Windows
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/msvc: 9/11] settings: Don't check for Flatpak on Windows
- Date: Wed, 19 Jan 2022 15:19:56 +0000 (UTC)
commit 4e1160cc3f30705e352aa35caac6a8b7bd7931f8
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Jan 19 14:05:10 2022 +0500
settings: Don't check for Flatpak on Windows
src/adw-settings.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/adw-settings.c b/src/adw-settings.c
index 0aa87b87..4db10809 100644
--- a/src/adw-settings.c
+++ b/src/adw-settings.c
@@ -286,11 +286,13 @@ init_portal (AdwSettings *self)
/* GSettings */
+#ifndef G_OS_WIN32
static gboolean
is_running_in_flatpak (void)
{
return g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS);
}
+#endif
static void
gsettings_color_scheme_changed_cb (AdwSettings *self)
@@ -311,10 +313,12 @@ init_gsettings (AdwSettings *self)
g_autoptr (GSettingsSchema) schema = NULL;
g_autoptr (GSettingsSchema) a11y_schema = NULL;
+#ifndef G_OS_WIN32
/* While we can access gsettings in flatpak, we can't do anything useful with
* them as they aren't propagated from the system. */
if (is_running_in_flatpak ())
return;
+#endif
source = g_settings_schema_source_get_default ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]