summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-02-27 09:01:59 +0100
committerDave Davenport <qball@gmpclient.org>2017-02-27 09:01:59 +0100
commit1de6239616cc1b2240c50a8df8a3f5ec292edaca (patch)
tree2b9e8745959a6e353d5e2b7e68efb4e2d5e8e820 /source
parent3d2491556e4e405e328d9ca000eb2d64d4056b5b (diff)
Also parse global config for dynamic options
Diffstat (limited to 'source')
-rw-r--r--source/rofi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/rofi.c b/source/rofi.c
index d3c9daa7..901b3eb0 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -542,6 +542,12 @@ static inline void load_configuration ( )
}
static inline void load_configuration_dynamic ( )
{
+ // Load distro default settings
+ gchar *etc = g_build_filename ( SYSCONFDIR, "rofi.conf", NULL );
+ if ( g_file_test ( etc, G_FILE_TEST_IS_REGULAR ) ) {
+ config_parse_xresource_options_dynamic_file ( etc );
+ }
+ g_free ( etc );
// Load in config from X resources.
config_parse_xresource_options_dynamic ( xcb );
config_parse_xresource_options_dynamic_file ( config_path );