mirror of https://github.com/davatorium/rofi.git
Read default config from /etc/rofi.conf if exists.
This commit is contained in:
parent
d5be6d232e
commit
1d2625cbb8
|
@ -427,6 +427,12 @@ static void setup_modi ( void )
|
||||||
*/
|
*/
|
||||||
static inline void load_configuration ( )
|
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.
|
// Load in config from X resources.
|
||||||
config_parse_xresource_options ( xcb );
|
config_parse_xresource_options ( xcb );
|
||||||
config_parse_xresource_options_file ( config_path );
|
config_parse_xresource_options_file ( config_path );
|
||||||
|
|
Loading…
Reference in New Issue