From f51974c9736c3e28755245d15729578214652343 Mon Sep 17 00:00:00 2001 Message-Id: From: worldofpeace Date: Thu, 3 Sep 2020 20:08:15 -0400 Subject: [PATCH] filechooser-module: hardcode gsettings for nixos --- filechooser-module/FileChooserDialog.vala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/filechooser-module/FileChooserDialog.vala b/filechooser-module/FileChooserDialog.vala index a70fe10..08fde2c 100644 --- a/filechooser-module/FileChooserDialog.vala +++ b/filechooser-module/FileChooserDialog.vala @@ -60,10 +60,14 @@ public class CustomFileChooserDialog : Object { /* If not local only during creation, strange bug occurs on fresh installs */ chooser_dialog.local_only = true; - var files_preferences = new Settings ("io.elementary.files.preferences"); + SettingsSchemaSource sss = new SettingsSchemaSource.from_directory ("@ELEMENTARY_FILES_GSETTINGS_PATH@", SettingsSchemaSource.get_default (), true); + SettingsSchema preferences_schema = sss.lookup ("io.elementary.files.preferences", false); + SettingsSchema chooser_schema = sss.lookup ("io.elementary.files.file-chooser", false); + + var files_preferences = new Settings.full (preferences_schema, null, null); is_single_click = files_preferences.get_boolean ("single-click"); - var chooser_settings = new Settings ("io.elementary.files.file-chooser"); + var chooser_settings = new Settings.full (chooser_schema, null, null); assign_container_box (); remove_gtk_widgets (); base-commit: 57cb89b64fd2d5c08f4aaf23e8c74bfaa5d0384f -- git-series 0.9.1