Summary: | Gnome Control Center - "Distribution Version: Unknown" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sherman Boyd (meekrob) (RETIRED) <meekrob> |
Component: | [OLD] GNOME | Assignee: | Spider (RETIRED) <spider> |
Status: | RESOLVED FIXED | ||
Severity: | trivial | ||
Priority: | High | ||
Version: | 1.1a | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sherman Boyd (meekrob) (RETIRED)
2002-04-18 13:21:27 UTC
I dont really know -where- control center gathers that information... static void get_linux_info() { /* Identify distribution (really this could be compiled in) */ if (g_file_exists("/etc/debian_version")) { FILE * f; gchar buf[20]; f = fopen("/etc/debian_version", "r"); if (f) { fscanf(f, "%16s", buf); info[si_distribution] = g_strdup(buf); fclose(f); } } else if (g_file_exists("/etc/conectiva-release")) { FILE *f; gchar buf[80]; f = fopen("/etc/conectiva-release", "r"); if (f) { fgets(buf, 79, f); info[si_distribution] = g_strdup(buf); fclose(f); } } else if (g_file_exists("/etc/mandrake-release")) { FILE *f; gchar buf[80]; f = fopen("/etc/mandrake-release", "r"); if (f) { fgets(buf, 79, f); info[si_distribution] = g_strdup(buf); fclose(f); } } else if (g_file_exists("/etc/SuSE-release")) { FILE *f; gchar buf[80]; f = fopen("/etc/SuSE-release", "r"); if (f) { fgets(buf, 79, f); info[si_distribution] = g_strdup(buf); fclose(f); } } else if (g_file_exists("/etc/redhat-release")) { FILE *f; gchar buf[80]; f = fopen("/etc/redhat-release", "r"); if (f) { Well... I've found the place, but this is more probably a control-center issue than a Gentoo one.. could you please file a bug upstream? |