Show missing dbus message only on Linux
Mac and Windows dont have dbus available
This commit is contained in:
parent
359d327b53
commit
9322ed4405
1 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@
|
||||||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
##
|
##
|
||||||
|
|
||||||
import os
|
import sys
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from gajim.common import app
|
from gajim.common import app
|
||||||
|
@ -40,7 +40,7 @@ try:
|
||||||
DBusGMainLoop(set_as_default=True)
|
DBusGMainLoop(set_as_default=True)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
supported = False
|
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 python bindings are missing in this computer'))
|
||||||
print(_('D-Bus capabilities of Gajim cannot be used'))
|
print(_('D-Bus capabilities of Gajim cannot be used'))
|
||||||
else:
|
else:
|
||||||
|
@ -51,7 +51,7 @@ else:
|
||||||
supported = True # does user have D-Bus bindings?
|
supported = True # does user have D-Bus bindings?
|
||||||
except dbus.DBusException:
|
except dbus.DBusException:
|
||||||
supported = False
|
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 does not run correctly on this machine'))
|
||||||
print(_('D-Bus capabilities of Gajim cannot be used'))
|
print(_('D-Bus capabilities of Gajim cannot be used'))
|
||||||
except exceptions.SystemBusNotPresent:
|
except exceptions.SystemBusNotPresent:
|
||||||
|
|
Loading…
Add table
Reference in a new issue