mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Use SYSCONFDIR
This commit is contained in:
parent
53242dab7d
commit
d3350afbed
2 changed files with 3 additions and 2 deletions
|
@ -80,7 +80,8 @@ rofi_CFLAGS=\
|
||||||
-I$(top_srcdir)/include/\
|
-I$(top_srcdir)/include/\
|
||||||
-I$(top_srcdir)/config/\
|
-I$(top_srcdir)/config/\
|
||||||
-I$(top_builddir)/\
|
-I$(top_builddir)/\
|
||||||
-Werror=missing-prototypes
|
-Werror=missing-prototypes\
|
||||||
|
-DSYSCONFDIR=\"$(sysconfdir)\"
|
||||||
|
|
||||||
rofi_LDADD=\
|
rofi_LDADD=\
|
||||||
$(glib_LIBS)\
|
$(glib_LIBS)\
|
||||||
|
|
|
@ -434,7 +434,7 @@ static void setup_modi ( void )
|
||||||
static inline void load_configuration ( )
|
static inline void load_configuration ( )
|
||||||
{
|
{
|
||||||
// Load distro default settings
|
// Load distro default settings
|
||||||
gchar *etc = g_build_filename ( G_DIR_SEPARATOR_S, "etc", "rofi.conf", NULL );
|
gchar *etc = g_build_filename ( SYSCONFDIR, "rofi.conf", NULL );
|
||||||
if ( g_file_test ( etc, G_FILE_TEST_IS_REGULAR ) ) {
|
if ( g_file_test ( etc, G_FILE_TEST_IS_REGULAR ) ) {
|
||||||
config_parse_xresource_options_file ( etc );
|
config_parse_xresource_options_file ( etc );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue