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:
parent
d5be6d232e
commit
1d2625cbb8
1 changed files with 6 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue