]> git.pld-linux.org Git - packages/control-center.git/blame - control-center-pldrelease.patch
- use /etc/pld-release (when available) for the distribution name in the
[packages/control-center.git] / control-center-pldrelease.patch
CommitLineData
13404d60 1diff -Nur control-center.orig/splash.c control-center/splash.c
2--- control-center.orig/splash.c Thu Feb 8 20:07:54 2001
3+++ control-center/splash.c Mon Aug 20 23:24:41 2001
4@@ -171,6 +171,16 @@
5 info[si_distribution] = g_strdup(buf);
6 fclose(f);
7 }
8+ } else if (g_file_exists("/etc/pld-release")) {
9+ FILE *f;
10+ gchar buf[80];
11+
12+ f = fopen("/etc/pld-release", "r");
13+ if (f) {
14+ fgets(buf, 79, f);
15+ info[si_distribution] = g_strdup(buf);
16+ fclose(f);
17+ }
18 }
19 else {
20 /* This is about the only case where we'll put Unknown instead
This page took 0.044624 seconds and 4 git commands to generate.