]> git.pld-linux.org Git - packages/control-center.git/commitdiff
- use /etc/pld-release (when available) for the distribution name in the
authorsaq <saq@pld-linux.org>
Mon, 20 Aug 2001 22:32:07 +0000 (22:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
splash screen

Changed files:
    control-center-pldrelease.patch -> 1.1

control-center-pldrelease.patch [new file with mode: 0644]

diff --git a/control-center-pldrelease.patch b/control-center-pldrelease.patch
new file mode 100644 (file)
index 0000000..827a388
--- /dev/null
@@ -0,0 +1,20 @@
+diff -Nur control-center.orig/splash.c control-center/splash.c
+--- control-center.orig/splash.c       Thu Feb  8 20:07:54 2001
++++ control-center/splash.c    Mon Aug 20 23:24:41 2001
+@@ -171,6 +171,16 @@
+         info[si_distribution] = g_strdup(buf);
+         fclose(f);
+       }
++  } else if (g_file_exists("/etc/pld-release")) {
++    FILE *f;
++      gchar buf[80];
++
++      f = fopen("/etc/pld-release", "r");
++      if (f) { 
++        fgets(buf, 79, f);
++        info[si_distribution] = g_strdup(buf);
++        fclose(f);
++      }
+   }           
+   else {
+     /* This is about the only case where we'll put Unknown instead
This page took 0.073673 seconds and 4 git commands to generate.