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