test if dbus0x11 is installed before using dbus. Fixes #4715

This commit is contained in:
Yann Leboulanger 2009-01-26 16:15:05 +00:00
parent 2804251df6
commit 2dec19d34f
3 changed files with 6 additions and 2 deletions

View File

@ -32,12 +32,12 @@ Gajim is a GTK+ app that loves GNOME. You can do 'make' so you don't require gno
<li>python-crypto to enable End to end encryption</li>
<li>For idle module, libxss library</li>
<li>For zeroconf (bonjour), the "enable link-local messaging" checkbox, you need dbus-glib, python-avahi</li>
<li>dnsutils (or whatever package provides the nslookup binary) for SRV support; if you don't know what that is, you don't need it</li>
<li>dnsutils (or whatever package provides the nslookup binary) for SRV support</li>
<li>gtkspell and aspell-LANG where lang is your locale eg. en, fr etc</li>
<li>GnomePythonExtras 2.10 or above (aka gnome-python-desktop) so you can avoid compiling trayicon and gtkspell</li>
<li>gnome-python-desktop (for GnomeKeyring support)</li>
<li>notification-daemon or notify-python (and D-Bus) to get cooler popups</li>
<li>D-Bus running to have gajim-remote working</li>
<li>D-Bus running to have gajim-remote working. Some distributions split dbus-x11, which is needed for dbus to work with Gajim.</li>
<li>python-dbus bindings</li>
<li>python-sexy to have clickable URLs in chat windows</li>
<li>python-kerberos to use GSSAPI authentification. Note: version1.1 or higher is required</li>

View File

@ -40,6 +40,8 @@ try:
pass
import dbus
import dbus.glib
# test if dbus-x11 is installed
bus = dbus.SessionBus()
supported = True # does user have D-Bus bindings?
except ImportError:
supported = False

View File

@ -52,6 +52,8 @@ try:
import dbus
import dbus.service
import dbus.glib
# test if dbus-x11 is installed
bus = dbus.SessionBus()
except Exception:
print str(exceptions.DbusNotSupported())
sys.exit(1)