]> git.pld-linux.org Git - packages/dc_gui.git/blob - dc_gui-home_etc.patch
- updated gettext BR
[packages/dc_gui.git] / dc_gui-home_etc.patch
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
4 @@ -560,7 +560,11 @@
5  
6         s=g_string_new(NULL);
7         path=getenv("HOME");
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"));
12 +       else
13 +               g_string_sprintf(s, "%s/.dctc/recent", (path!=NULL)?path:".");
14         unlink(s->str);
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
20 @@ -414,7 +414,12 @@
21  
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"));
28 +       else
29 +               g_string_sprintf(dctc_main_dir, "%s/.dctc", (path!=NULL)?path:".");
30 +       
31         if(access(dctc_main_dir->str,R_OK|W_OK|X_OK))
32         {
33                 if(errno==ENOENT)
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
37 @@ -46,7 +46,11 @@
38  
39         s=g_string_new(NULL);
40         path=getenv("HOME");
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"));
45 +       else
46 +               g_string_sprintf(s, "%s/.dctc/recent",(path!=NULL)?path:".");
47  
48         /* we read the file ~/.dctc/recent */
49         f=fopen(s->str,"rb");
This page took 0.052871 seconds and 4 git commands to generate.