From 13404d60ac146b103586e0c606f3f6a3d05bb602 Mon Sep 17 00:00:00 2001 From: saq Date: Mon, 20 Aug 2001 22:32:07 +0000 Subject: [PATCH] - use /etc/pld-release (when available) for the distribution name in the splash screen Changed files: control-center-pldrelease.patch -> 1.1 --- control-center-pldrelease.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 control-center-pldrelease.patch 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 -- 2.44.0