mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05: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:
parent
83f6408979
commit
464ff76954
@ -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"
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user