Skip to content
Snippets Groups Projects
Commit 9322ed44 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Show missing dbus message only on Linux

Mac and Windows dont have dbus available
parent 359d327b
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment