Get current release from /etc/qubes-release for about window

This commit is contained in:
Marek Marczykowski 2013-04-25 16:09:03 +02:00
parent 0f175b5c92
commit da0d0c29b8

View File

@ -1744,7 +1744,10 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
@pyqtSlot(name='on_action_about_qubes_triggered')
def action_about_qubes_triggered(self):
QMessageBox.about(self, "About...", "<b>Qubes OS</b><br><br>Release 1.0")
release_file = open('/etc/qubes-release', 'r')
release = release_file.read()
release_file.close()
QMessageBox.about(self, "About...", "<b>Qubes OS</b><br><br>%s" % release)
def createPopupMenu(self):