From: saq Date: Mon, 20 Aug 2001 22:32:07 +0000 (+0000) Subject: - use /etc/pld-release (when available) for the distribution name in the X-Git-Tag: control-center-1_4_0_1-5~2 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=13404d60ac146b103586e0c606f3f6a3d05bb602;p=packages%2Fcontrol-center.git - use /etc/pld-release (when available) for the distribution name in the splash screen Changed files: control-center-pldrelease.patch -> 1.1 --- diff --git a/control-center-pldrelease.patch b/control-center-pldrelease.patch new file mode 100644 index 0000000..827a388 --- /dev/null +++ b/control-center-pldrelease.patch @@ -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