2021-08-29 02:41:56 +01:00
|
|
|
diff --git a/src/common/gnomesettings.cpp b/src/common/gnomesettings.cpp
|
|
|
|
index 717cc9b..ee255ea 100644
|
|
|
|
--- a/src/common/gnomesettings.cpp
|
|
|
|
+++ b/src/common/gnomesettings.cpp
|
|
|
|
@@ -150,10 +150,18 @@ GnomeSettingsPrivate::GnomeSettingsPrivate(QObject *parent)
|
|
|
|
: GnomeSettings(parent)
|
2020-03-23 21:21:05 +00:00
|
|
|
, m_usePortal(checkUsePortalSupport())
|
2021-08-29 02:41:56 +01:00
|
|
|
, m_canUseFileChooserPortal(!m_usePortal)
|
2020-03-23 21:21:05 +00:00
|
|
|
- , m_gnomeDesktopSettings(g_settings_new("org.gnome.desktop.wm.preferences"))
|
|
|
|
- , m_settings(g_settings_new("org.gnome.desktop.interface"))
|
2021-08-29 02:41:56 +01:00
|
|
|
, m_fallbackFont(new QFont(QLatin1String("Sans"), 10))
|
2020-03-23 21:21:05 +00:00
|
|
|
{
|
|
|
|
+ g_autoptr(GSettingsSchemaSource) schemaSource = nullptr;
|
|
|
|
+ g_autoptr(GSettingsSchema) gnomeDesktopSchema = nullptr;
|
|
|
|
+ g_autoptr(GSettingsSchema) settingsSchema = nullptr;
|
|
|
|
+
|
|
|
|
+ schemaSource = g_settings_schema_source_new_from_directory("@gds_gsettings_path@", g_settings_schema_source_get_default(), true, nullptr);
|
|
|
|
+ gnomeDesktopSchema = g_settings_schema_source_lookup(schemaSource, "org.gnome.desktop.wm.preferences", false);
|
|
|
|
+ m_gnomeDesktopSettings = g_settings_new_full(gnomeDesktopSchema, nullptr, nullptr);
|
|
|
|
+ settingsSchema = g_settings_schema_source_lookup(schemaSource, "org.gnome.desktop.interface", false);
|
|
|
|
+ m_settings = g_settings_new_full(settingsSchema, nullptr, nullptr);
|
|
|
|
+
|
|
|
|
gtk_init(nullptr, nullptr);
|
|
|
|
|
|
|
|
// Set log handler to suppress false GtkDialog warnings
|