Also parse global config for dynamic options

This commit is contained in:
Dave Davenport 2017-02-27 09:01:59 +01:00
parent 3d2491556e
commit 1de6239616
1 changed files with 6 additions and 0 deletions

View File

@ -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 );