Read default config from /etc/rofi.conf if exists.

This commit is contained in:
Dave Davenport 2016-03-07 17:51:20 +01:00
parent d5be6d232e
commit 1d2625cbb8
1 changed files with 6 additions and 0 deletions

View File

@ -427,6 +427,12 @@ static void setup_modi ( void )
*/
static inline void load_configuration ( )
{
// Load distro default settings
gchar *etc = g_build_filename ( G_DIR_SEPARATOR_S, "etc", "rofi.conf", NULL );
if ( g_file_test ( etc, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR ) ) {
config_parse_xresource_options_file ( etc );
}
g_free ( etc );
// Load in config from X resources.
config_parse_xresource_options ( xcb );
config_parse_xresource_options_file ( config_path );