diff --git a/src/Widgets/MainView.vala b/src/Widgets/MainView.vala index f806698..dbca1ac 100644 --- a/src/Widgets/MainView.vala +++ b/src/Widgets/MainView.vala @@ -38,8 +38,11 @@ public class Widgets.MainView : Gtk.Widget { }; main_widget.set_parent (this); - var settings = new Settings ("io.elementary.settings"); - settings.bind ("sidebar-position", main_widget, "position", DEFAULT); + var sss = SettingsSchemaSource.get_default ().lookup ("io.elementary.settings", true); + if (sss != null && sss.has_key ("sidebar-position")) { + var settings = new Settings ("io.elementary.settings"); + settings.bind ("sidebar-position", main_widget, "position", DEFAULT); + } } ~MainView () {