From 9322ed440594c02283b10f6c89c172eb17b9fcf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 24 Nov 2017 16:28:07 +0100 Subject: [PATCH] Show missing dbus message only on Linux Mac and Windows dont have dbus available --- gajim/common/dbus_support.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gajim/common/dbus_support.py b/gajim/common/dbus_support.py index 7d339b5cb..6c39479ab 100644 --- a/gajim/common/dbus_support.py +++ b/gajim/common/dbus_support.py @@ -24,7 +24,7 @@ ## along with Gajim. If not, see . ## -import os +import sys import logging from gajim.common import app @@ -40,7 +40,7 @@ try: DBusGMainLoop(set_as_default=True) except ImportError: supported = False - if not os.name == 'nt': # only say that to non Windows users + if sys.platform == 'linux': # windows and mac have no dbus print(_('D-Bus python bindings are missing in this computer')) print(_('D-Bus capabilities of Gajim cannot be used')) else: @@ -51,7 +51,7 @@ else: supported = True # does user have D-Bus bindings? except dbus.DBusException: supported = False - if not os.name == 'nt': # only say that to non Windows users + if sys.platform == 'linux': # windows and mac have no dbus print(_('D-Bus does not run correctly on this machine')) print(_('D-Bus capabilities of Gajim cannot be used')) except exceptions.SystemBusNotPresent: