From 71231fb864cda656fb5bdc0fd75ef4250caca03d Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Thu, 15 Sep 2005 20:40:55 +0000 Subject: [PATCH] don't load remote control if dbus is 0.23.x and python is 2.4 --- src/remote_control.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/remote_control.py b/src/remote_control.py index 6afee8da8..63bc64586 100644 --- a/src/remote_control.py +++ b/src/remote_control.py @@ -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: