From e99e0c2744f3a9e9a3dd3c01c980811de7ed41c2 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 27 Nov 2012 02:17:44 +0100 Subject: [PATCH] firstboot: obtain version info automatically (#676) --- firstboot/modules/welcome.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firstboot/modules/welcome.py b/firstboot/modules/welcome.py index bce996b..70bcf6d 100644 --- a/firstboot/modules/welcome.py +++ b/firstboot/modules/welcome.py @@ -31,9 +31,12 @@ N_ = lambda x: x class moduleClass(Module): def __init__(self): Module.__init__(self) + f = open('/etc/qubes-release', 'r') + version = f.read().strip() + f.close() self.priority = 1 self.sidebarTitle = N_("Welcome") - self.title = N_("Welcome to Qubes R1") + self.title = N_("Welcome to %s") % version self.icon = "workstation.png" def apply(self, interface, testing=False):