990e6a41d5333e25b3a98bb688e562f10c998304
[packages/irssi.git] / irssi-home_etc.patch
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 = ".";
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 @@
17         away_msgs = 0;
18  
19         awaylog_file = g_strconcat(get_irssi_dir(), "/away.log", NULL);
20 -       settings_add_str("log", "awaylog_file", awaylog_file);
21 +       char *home_etc = getenv("HOME_ETC");
22 +       if (home_etc) {
23 +               char *log = g_strdup_printf("%s/.irssi/away.log", home_etc);
24 +               settings_add_str("log", "awaylog_file", log);
25 +       } else
26 +               settings_add_str("log", "awaylog_file", awaylog_file);
27         g_free(awaylog_file);
28         settings_add_level("log", "awaylog_level", "msgs hilight");
29
30
This page took 0.061326 seconds and 2 git commands to generate.