diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-04-01 19:51:24 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-04-01 19:51:24 +0200 |
commit | d3350afbed434b8588fb92269bc6f1919e39d1af (patch) | |
tree | a6a9a8707c39dc0924a09c557692200b9a064739 | |
parent | 53242dab7db4f43872936e06d991982e75ff44fb (diff) |
Use SYSCONFDIR
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | source/rofi.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 7c27737d..769bcc4d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -80,7 +80,8 @@ rofi_CFLAGS=\ -I$(top_srcdir)/include/\ -I$(top_srcdir)/config/\ -I$(top_builddir)/\ - -Werror=missing-prototypes + -Werror=missing-prototypes\ + -DSYSCONFDIR=\"$(sysconfdir)\" rofi_LDADD=\ $(glib_LIBS)\ diff --git a/source/rofi.c b/source/rofi.c index 481d6b31..fa4d6095 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -434,7 +434,7 @@ 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 ); + gchar *etc = g_build_filename ( SYSCONFDIR, "rofi.conf", NULL ); if ( g_file_test ( etc, G_FILE_TEST_IS_REGULAR ) ) { config_parse_xresource_options_file ( etc ); } |