- up to 1.2.2
[packages/irssi.git] / irssi-home_etc.patch
CommitLineData
5a521683 1--- irssi-0.8.6.orig/src/core/core.c 2002-10-19 20:00:06.000000000 +0200
2+++ irssi-0.8.6/src/core/core.c 2003-11-09 12:46:25.000000000 +0100
3@@ -193,7 +193,9 @@
4 args_register(options);
5
6 if (irssi_dir == NULL) {
7- home = g_get_home_dir();
8+ home = getenv("HOME_ETC");
9+ if (home == NULL)
10+ home = g_get_home_dir();
11 if (home == NULL)
12 home = ".";
6cd21451 13
14--- irssi-0.8.11/src/core/log-away.c.orig 2007-04-25 20:13:56.000000000 +0200
15+++ irssi-0.8.11/src/core/log-away.c 2007-06-07 01:31:08.951362144 +0200
16@@ -105,7 +105,12 @@
5a521683 17 away_msgs = 0;
60ee30af 18
6cd21451 19 awaylog_file = g_strconcat(get_irssi_dir(), "/away.log", NULL);
20- settings_add_str("log", "awaylog_file", awaylog_file);
5a521683 21+ char *home_etc = getenv("HOME_ETC");
5a521683 22+ if (home_etc) {
60ee30af 23+ char *log = g_strdup_printf("%s/.irssi/away.log", home_etc);
5a521683 24+ settings_add_str("log", "awaylog_file", log);
25+ } else
6cd21451 26+ settings_add_str("log", "awaylog_file", awaylog_file);
27 g_free(awaylog_file);
60ee30af 28 settings_add_level("log", "awaylog_level", "msgs hilight");
6cd21451 29
a0385854 30
This page took 0.073061 seconds and 4 git commands to generate.