[25353] in Source-Commits

home help back first fref pref prev next nref lref last post

Re: /svn/athena r24917 - trunk/debathena/config/gdm-config/debian

daemon@ATHENA.MIT.EDU (Geoffrey Thomas)
Wed Jan 5 21:13:02 2011

Date: Wed, 5 Jan 2011 21:12:54 -0500 (EST)
From: Geoffrey Thomas <geofft@MIT.EDU>
To: Jonathan D Reed <jdreed@mit.edu>
cc: source-commits@mit.edu
In-Reply-To: <201101051952.p05JquJY014915@drugstore.mit.edu>
Message-ID: <alpine.DEB.1.10.1101052112000.24885@dr-wily.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

ACK. For what it's worth, I don't think this will ever not be the same 
result as doing os.uname()[4] on UNIX systems, but whatever.

-- 
Geoffrey Thomas
geofft@mit.edu

On Wed, 5 Jan 2011, Jonathan D Reed wrote:

> Author: jdreed
> Date: 2011-01-05 14:52:56 -0500 (Wed, 05 Jan 2011)
> New Revision: 24917
>
> Modified:
>   trunk/debathena/config/gdm-config/debian/debathena-branding
> Log:
> Add architecture type to login screen
>
> Modified: trunk/debathena/config/gdm-config/debian/debathena-branding
> ===================================================================
> --- trunk/debathena/config/gdm-config/debian/debathena-branding	2011-01-05 19:42:34 UTC (rev 24916)
> +++ trunk/debathena/config/gdm-config/debian/debathena-branding	2011-01-05 19:52:56 UTC (rev 24917)
> @@ -8,6 +8,7 @@
> import sys
> import os
> import subprocess
> +import platform
>
> SM_DBUS_NAME = "org.gnome.SessionManager"
> SM_DBUS_PATH = "/org/gnome/SessionManager"
> @@ -58,7 +59,7 @@
>             baseos = subprocess.Popen(["machtype", "-E"], stdout=subprocess.PIPE).communicate()[0].rstrip()
>         except OSError:
>             baseos = '(error)'
> -        self.lblBranding.set_text(metapackage + "\n" + baseos)
> +        self.lblBranding.set_text(metapackage + "\n" + baseos + " (" + platform.machine() + ")")
>         self.winBranding.set_gravity(gtk.gdk.GRAVITY_SOUTH_EAST)
>         width, height = self.winBranding.get_size()
>         self.winBranding.move(gtk.gdk.screen_width() - width, gtk.gdk.screen_height() - height)
>
>

home help back first fref pref prev next nref lref last post