firstboot: obtain version info automatically (#676)
This commit is contained in:
parent
d75d0e53d0
commit
e99e0c2744
@ -31,9 +31,12 @@ N_ = lambda x: x
|
|||||||
class moduleClass(Module):
|
class moduleClass(Module):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Module.__init__(self)
|
Module.__init__(self)
|
||||||
|
f = open('/etc/qubes-release', 'r')
|
||||||
|
version = f.read().strip()
|
||||||
|
f.close()
|
||||||
self.priority = 1
|
self.priority = 1
|
||||||
self.sidebarTitle = N_("Welcome")
|
self.sidebarTitle = N_("Welcome")
|
||||||
self.title = N_("Welcome to Qubes R1")
|
self.title = N_("Welcome to %s") % version
|
||||||
self.icon = "workstation.png"
|
self.icon = "workstation.png"
|
||||||
|
|
||||||
def apply(self, interface, testing=False):
|
def apply(self, interface, testing=False):
|
||||||
|
Loading…
Reference in New Issue
Block a user