SOURCES: etswitch-home_etc.patch (NEW), etswitch-desktop.patch (NE...
adamg
adamg at pld-linux.org
Thu Mar 9 21:00:13 CET 2006
Author: adamg Date: Thu Mar 9 20:00:13 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- new
---- Files affected:
SOURCES:
etswitch-home_etc.patch (NONE -> 1.1) (NEW), etswitch-desktop.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/etswitch-home_etc.patch
diff -u /dev/null SOURCES/etswitch-home_etc.patch:1.1
--- /dev/null Thu Mar 9 21:00:13 2006
+++ SOURCES/etswitch-home_etc.patch Thu Mar 9 21:00:08 2006
@@ -0,0 +1,33 @@
+--- etswitch-0.1.8/src/conf.c~ 2005-11-03 17:56:30.000000000 +0100
++++ etswitch-0.1.8/src/conf.c 2006-03-09 20:48:40.865172500 +0100
+@@ -95,7 +95,9 @@
+
+ file = calloc(max,1);
+ bin = calloc(78,1);
+- home = (char *)getenv("HOME");
++ home = getenv("HOME_ETC");
++ if ( home == NULL)
++ home = (char *)getenv("HOME");
+ snprintf((char *)file, (size_t)max, "%s/.etswitch/etswitch.rc", (char *)home);
+ if (!(fp = open((char *)file,O_RDONLY))){
+ fprintf(stderr, "fopen read failed: %s, at line: %d\n", strerror(errno),__LINE__);
+@@ -121,6 +123,10 @@
+ int r;
+ int special;
+
++ char * home = getenv("HOME_ETC");
++ if (home == NULL)
++ home = getenv("HOME");
++
+ dir = calloc(PATH_MAX+1,1);
+ /* home = calloc(PATH_MAX+1,1); */
+ file = calloc(PATH_MAX+NAME_MAX+1,1);
+@@ -130,7 +136,7 @@
+ exit(EXIT_FAILURE);
+ }
+ /* change to get pw*/
+- snprintf((char *)dir, PATH_MAX, "%s/.etswitch", getenv("HOME"));
++ snprintf((char *)dir, PATH_MAX, "%s/.etswitch", home);
+ snprintf((char *)file, PATH_MAX+NAME_MAX, "%s/etswitch.rc", dir);
+ if (stat((char *)dir, &dir_stat)!=-1){
+ if (!S_ISDIR (dir_stat.st_mode)){ /* the name is a directory, and it exists */
================================================================
Index: SOURCES/etswitch-desktop.patch
diff -u /dev/null SOURCES/etswitch-desktop.patch:1.1
--- /dev/null Thu Mar 9 21:00:13 2006
+++ SOURCES/etswitch-desktop.patch Thu Mar 9 21:00:08 2006
@@ -0,0 +1,21 @@
+--- etswitch-0.1.8/etswitch.desktop.in~ 2006-03-09 20:43:12.000000000 +0100
++++ etswitch-0.1.8/etswitch.desktop.in 2006-03-09 20:45:19.568592250 +0100
+@@ -4,15 +4,9 @@
+ Name=ETSwitch
+ GenericName=Game switcher
+ Comment=ETSwitch version @VERSION@
+-
+-Name[sv_SE]=ETSwitch
+-GenericName[sv_SE]=Game switcher
+-Comment[sv_SE]=ETSwitch version @VERSION@
+-
+-Name[fi_FI]=ETSwitch
+-GenericName[fi_FI]=Peli vaihtaja
+-Comment[fi_FI]=ETSwitch versio @VERSION@
+-
++GenericName[fi]=Peli vaihtaja
++Comment[fi]=ETSwitch versio @VERSION@
++GenericName[pl]=Minimalizacja gier
+ Exec=etswitch --no-delay
+ Icon=etswitch.png
+ Terminal=false
================================================================
More information about the pld-cvs-commit
mailing list