don't load remote control if dbus is 0.23.x

and python is 2.4
This commit is contained in:
Dimitur Kirov 2005-09-15 20:40:55 +00:00
parent 973631a2c9
commit 71231fb864
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,7 @@
import gobject
import gtk
import os
import sys
from common import gajim
from time import time
@ -54,6 +55,10 @@ class Remote:
print _('D-Bus python bindings are missing in this computer')
print _('D-Bus capabilities of Gajim cannot be used')
raise DbusNotSupported()
# dbus 0.23 leads to segfault with threads_init()
if sys.version[:4] >= '2.4' and _version[1] < 30:
raise DbusNotSupported()
try:
session_bus = dbus.SessionBus()
except: