From 464ff769544b886824b92273cc0362eace1935d5 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 10 Feb 2002 14:33:42 +0000 Subject: [PATCH] added #define IRSSI_HOME_CONFIG git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2419 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/common.h | 1 + src/core/core.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common.h b/src/common.h index 4e3dd852..d10c3d58 100644 --- a/src/common.h +++ b/src/common.h @@ -6,6 +6,7 @@ #define IRSSI_DIR_SHORT "~/.irssi" #define IRSSI_DIR_FULL "%s/.irssi" /* %s == g_get_home_dir() */ +#define IRSSI_HOME_CONFIG "config" /* config file name in ~/.irssi/ */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/src/core/core.c b/src/core/core.c index 2321208e..f39c50d3 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -184,7 +184,7 @@ void core_init_paths(int argc, char *argv[]) if (irssi_dir == NULL) irssi_dir = g_strdup_printf(IRSSI_DIR_FULL, g_get_home_dir()); if (irssi_config_file == NULL) - irssi_config_file = g_strdup_printf("%s/config", irssi_dir); + irssi_config_file = g_strdup_printf("%s/"IRSSI_HOME_CONFIG, irssi_dir); session_set_binary(argv[0]); }