47
37
public void load_settings (string config_path) {
49
38
key_file = new GLib.KeyFile ();
54
43
public void load_setting_from_xdg () {
56
44
key_file = new GLib.KeyFile ();
57
45
this.config_path = LO_XDG_CONFIG_PATH;
66
48
private void parse_key_file ()
67
49
requires (key_file != null) {
70
51
key_file.load_from_file (this.config_path, GLib.KeyFileFlags.NONE);
71
52
} catch (GLib.FileError e) {
72
53
string message = @"ERROR: $(e.message)\n";
75
55
} catch (GLib.KeyFileError e) {
76
56
string message = @"ERROR: $(e.message)\n";
82
61
if( key_file.has_key (CONFIG_INI_NAMESPACE_MAIN, "DarkTheme") ) {
83
62
this.dark_theme = key_file.get_boolean (CONFIG_INI_NAMESPACE_MAIN, "DarkTheme");
87
64
} catch (GLib.KeyFileError e) {
88
65
string message = @"ERROR: $(e.message)\n";