Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1913 - Gnome Control Center - "Distribution Version: Unknown"
Summary: Gnome Control Center - "Distribution Version: Unknown"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Spider (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-18 13:21 UTC by Sherman Boyd (meekrob) (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sherman Boyd (meekrob) (RETIRED) gentoo-dev 2002-04-18 13:21:27 UTC
It's polish but... currently the Gnome control panel lists the distribution as
unknown.  Maybe we should at least change it to "Gentoo Linux".
Comment 1 Spider (RETIRED) gentoo-dev 2002-04-23 04:25:03 UTC
I dont really know -where- control center gathers that information...
Comment 2 Spider (RETIRED) gentoo-dev 2002-04-23 04:38:34 UTC
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?