1 diff -Nur dc_gui2-0.68.orig/src/callbacks.c dc_gui2-0.68.chng/src/callbacks.c
2 --- dc_gui2-0.68.orig/src/callbacks.c Sat Jan 4 08:24:38 2003
3 +++ dc_gui2-0.68.chng/src/callbacks.c Wed Jan 8 13:54:11 2003
8 - g_string_sprintf(s,"%s/.dctc/recent",(path!=NULL)?path:".");
9 + if (getenv("CONFIG_DIR"))
10 + g_string_sprintf(s, "%s/%s/dctc/recent",
11 + (path!=NULL)?path:".", getenv("CONFIG_DIR"));
13 + g_string_sprintf(s, "%s/.dctc/recent", (path!=NULL)?path:".");
15 g_string_free(s,TRUE);
16 fill_recent_hub_clist();
17 diff -Nur dc_gui2-0.71.orig/src/main.c dc_gui2-0.71.chng/src/main.c
18 --- dc_gui2-0.71.orig/src/main.c Sun Mar 9 09:12:31 2003
19 +++ dc_gui2-0.71.chng/src/main.c Wed Mar 19 09:21:11 2003
22 /* main dir= $HOME/.dctc */
23 dctc_main_dir=g_string_new(NULL);
24 - g_string_sprintf(dctc_main_dir,"%s/.dctc",(path!=NULL)?path:".");
25 + if (getenv("CONFIG_DIR"))
26 + g_string_sprintf(dctc_main_dir, "%s/%s/dctc",
27 + (path!=NULL)?path:".", getenv("CONFIG_DIR"));
29 + g_string_sprintf(dctc_main_dir, "%s/.dctc", (path!=NULL)?path:".");
31 if(access(dctc_main_dir->str,R_OK|W_OK|X_OK))
34 diff -Nur dc_gui2-0.68.orig/src/recent_hub_clist.c dc_gui2-0.68.chng/src/recent_hub_clist.c
35 --- dc_gui2-0.68.orig/src/recent_hub_clist.c Wed Jan 1 15:24:57 2003
36 +++ dc_gui2-0.68.chng/src/recent_hub_clist.c Wed Jan 8 13:57:01 2003
41 - g_string_sprintf(s,"%s/.dctc/recent",(path!=NULL)?path:".");
42 + if(getenv("CONFIG_DIR"))
43 + g_string_sprintf(s, "%s/%s/dctc/recent",
44 + (path!=NULL)?path:".", getenv("CONFIG_DIR"));
46 + g_string_sprintf(s, "%s/.dctc/recent",(path!=NULL)?path:".");
48 /* we read the file ~/.dctc/recent */