From 1d2625cbb8623e68dc35ba0c1c2fcae7295abdd2 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 7 Mar 2016 17:51:20 +0100 Subject: [PATCH] Read default config from /etc/rofi.conf if exists. --- source/rofi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/rofi.c b/source/rofi.c index 967f7a80..efeac421 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -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 );