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