Operating system detection
This commit is contained in:
parent
3db67530a9
commit
5caced3c6b
|
@ -570,8 +570,9 @@ class MyForm(QtGui.QMainWindow):
|
||||||
|
|
||||||
# is the operating system Ubuntu?
|
# is the operating system Ubuntu?
|
||||||
def isUbuntu(self):
|
def isUbuntu(self):
|
||||||
if "Ubuntu" in str(os.uname()):
|
for entry in os.uname():
|
||||||
return True
|
if "Ubuntu" in entry:
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# returns the number of unread messages and subscriptions
|
# returns the number of unread messages and subscriptions
|
||||||
|
|
Loading…
Reference in New Issue
Block a user