1
0
mirror of https://github.com/irssi/irssi.git synced 2024-08-04 03:34:18 -04:00

added #define IRSSI_HOME_CONFIG

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2419 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-10 14:33:42 +00:00 committed by cras
parent 83f6408979
commit 464ff76954
2 changed files with 2 additions and 1 deletions

View File

@ -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"

View File

@ -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]);
}