Operating system detection

This commit is contained in:
fuzzgun 2013-05-11 23:16:04 +01:00
parent 3db67530a9
commit 5caced3c6b
1 changed files with 3 additions and 2 deletions

View File

@ -570,8 +570,9 @@ class MyForm(QtGui.QMainWindow):
# is the operating system Ubuntu?
def isUbuntu(self):
if "Ubuntu" in str(os.uname()):
return True
for entry in os.uname():
if "Ubuntu" in entry:
return True
return False
# returns the number of unread messages and subscriptions