[gdm-list] gdm 2.32.0: do not print version in greeter login window for unknown distributions



Hello !

I suggest to apply the following tiny patch to avoid printing the
distribution version for unknown distributions in the gdm greeter login
window. It looks much better !

Thanks, Guido

--- gdm-2.32.0-orig/gui/simple-greeter/gdm-greeter-login-window.c	2010-09-15 20:58:52.000000000 +0200
+++ gdm-2.32.0/gui/simple-greeter/gdm-greeter-login-window.c	2010-09-29 18:43:31.363369155 +0200
@@ -1136,6 +1136,9 @@ get_system_version (void)
                         version = g_strdup (output);
                 }
                 version = g_strstrip (version);
+                /* Do not print version for unknown distributions */
+                if (!strcmp(version, "(none)"))
+                        version = NULL;
                 g_free (output);
 
                 goto out;

--- gdm-2.32.0-orig/gui/simple-greeter/gdm-greeter-login-window.c	2010-09-15 20:58:52.000000000 +0200
+++ gdm-2.32.0/gui/simple-greeter/gdm-greeter-login-window.c	2010-09-29 18:43:31.363369155 +0200
@@ -1136,6 +1136,9 @@ get_system_version (void)
                         version = g_strdup (output);
                 }
                 version = g_strstrip (version);
+                /* Do not print version for unknown distributions */
+                if (!strcmp(version, "(none)"))
+                        version = NULL;
                 g_free (output);
 
                 goto out;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]