From 5caced3c6bdd6bf179fb47e8a84344455a1310af Mon Sep 17 00:00:00 2001 From: fuzzgun Date: Sat, 11 May 2013 23:16:04 +0100 Subject: [PATCH] Operating system detection --- src/bitmessageqt/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index ebc8adec..c190db57 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -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