]> git.pld-linux.org Git - packages/geg.git/commitdiff
- CONFIG_DIR support
authorjuandon <witekfl@pld-linux.org>
Sat, 29 Mar 2003 18:42:29 +0000 (18:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    geg-home_etc.patch -> 1.1

geg-home_etc.patch [new file with mode: 0644]

diff --git a/geg-home_etc.patch b/geg-home_etc.patch
new file mode 100644 (file)
index 0000000..dd58de3
--- /dev/null
@@ -0,0 +1,22 @@
+diff -Nru geg-1.0.2/src/app.c geg-1.0.2.new/src/app.c
+--- geg-1.0.2/src/app.c        Tue Nov 23 23:33:56 1999
++++ geg-1.0.2.new/src/app.c    Sat Mar 29 12:50:15 2003
+@@ -114,9 +114,16 @@
+ parse_rcfile(void)
+ {
+   char rc_file[256];
++  char *config_dir = getenv("CONFIG_DIR");
++
+   /* load preferences */
+-  strncpy(rc_file, getenv("HOME"), 248);
+-  strcat(rc_file, "/.gegrc");
++  if (config_dir) {
++    strncpy(rc_file, config_dir, 248);
++    strcat(rc_file, "/gegrc");
++  } else {
++    strncpy(rc_file, getenv("HOME"), 248);
++    strcat(rc_file, "/.gegrc");
++  }
+   prefs_rc_parse(rc_file);
+ }
This page took 0.082998 seconds and 4 git commands to generate.