Philipp Hörist pushed to branch master at gajim / gajim
Commits: 9322ed44 by Philipp Hörist at 2017-11-24T16:28:22+01:00 Show missing dbus message only on Linux
Mac and Windows dont have dbus available
- - - - -
1 changed file:
- gajim/common/dbus_support.py
Changes:
===================================== gajim/common/dbus_support.py ===================================== --- a/gajim/common/dbus_support.py +++ b/gajim/common/dbus_support.py @@ -24,7 +24,7 @@ ## along with Gajim. If not, see http://www.gnu.org/licenses/. ##
-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:
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/9322ed440594c02283b10f6c89c172eb17b...
--- View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/9322ed440594c02283b10f6c89c172eb17b... You're receiving this email because of your account on dev.gajim.org.