1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

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

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