Package: gajim
Version: 0.15.1-4
Severity: normal
Tags: patch
Hi,
please look at the following transcript: gajim fails to come up
when dbus, which (thank the gods!) is only a Recommends, is not
installed.
-----BEGIN cutting here may damage your screen surface-----
tg@keks:~ $ gajim
D-Bus python bindings are missing in this computer
D-Bus capabilities of Gajim cannot be used
creating /home/tg/.config/gajim directory
creating /home/tg/.config/gajim/pluginsconfig directory
process 22497: D-Bus library appears to be incorrectly set up; failed to read
machine uuid: Failed to open "/etc/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
(gajim:22497): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
/usr/bin/dbus-launch terminated abnormally without any error message
Traceback (most recent call last):
File "gajim.py", line 447, in <module>
interface = Interface()
File "/usr/share/gajim/src/gui_interface.py", line 2623, in __init__
gtkgui_helpers.possibly_set_gajim_as_xmpp_handler()
File "/usr/share/gajim/src/gtkgui_helpers.py", line 752, in
possibly_set_gajim_as_xmpp_handler
old_command = client.get_string('/desktop/gnome/url-handlers/xmpp/command')
glib.GError: No D-BUS daemon running
1|tg@keks:~ $ echo check_if_gajim_is_default = False >.config/gajim/config
tg@keks:~ $ gajim
D-Bus python bindings are missing in this computer
D-Bus capabilities of Gajim cannot be used
process 23110: D-Bus library appears to be incorrectly set up; failed to read
machine uuid: Failed to open "/etc/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
(gajim:23110): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
/usr/bin/dbus-launch terminated abnormally without any error message
The program 'gajim' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
(Details: serial 242 error_code 1 request_code 153 minor_code 33)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
-----END cutting here may damage your screen surface-----
The error at the end is Gtk creating a screen request that my
X server cannot handle (I’ve logged in via ssh -YC), so ignore
that for now, that’s a different and probably separate issue.
The error lies here:
I /usr/share/gajim/src/gui_interface.py(Read only)
R2622<2955 C75 115745|1C421u|0027 13:58
2621 # Is Gajim default app?
2622 if os.name != 'nt' and
gajim.config.get('check_if_gajim_is_default'):
2623 gtkgui_helpers.possibly_set_gajim_as_xmpp_handler()
A possible patch looks like this:
--- /usr/share/gajim/src/gui_interface.py 2013-03-01 14:00:11.028061984
+0100
+++ - 2013-03-01 14:00:18.016299734 +0100
@@ -2619,7 +2619,7 @@ class Interface:
logging_helpers.set_verbose()
# Is Gajim default app?
- if os.name != 'nt' and gajim.config.get('check_if_gajim_is_default'):
+ if os.name != 'nt' and gajim.config.get('check_if_gajim_is_default')
and dbus_support.supported:
gtkgui_helpers.possibly_set_gajim_as_xmpp_handler()
for account in gajim.config.get_per('accounts'):
I confirm that this patch works. Please apply it (Debian and upstream).
-- System Information:
Debian Release: 7.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.7-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/mksh
Versions of packages gajim depends on:
ii dnsutils 1:9.8.4.dfsg.P1-5
ii python 2.7.3-4
ii python-gtk2 2.24.0-3+b1
Versions of packages gajim recommends:
pn dbus <none>
ii notification-daemon 0.7.6-1
ii python-crypto 2.6-4
pn python-dbus <none>
ii python-openssl 0.13-2
ii python-pyasn1 0.1.3-1
Versions of packages gajim suggests:
ii aspell-en 7.1-0-1
pn avahi-daemon <none>
pn dvipng <none>
pn gnome-keyring <none>
ii gstreamer0.10-plugins-ugly 0.10.19-2+b2
ii libgtkspell0 2.0.16-1
pn nautilus-sendto <none>
pn network-manager <none>
pn python-avahi <none>
pn python-farstream <none>
ii python-gconf 2.28.1+dfsg-1
pn python-gnome2 <none>
ii python-gnomekeyring 2.32.0+dfsg-2+b1
ii python-gupnp-igd 0.2.1-2
pn python-kerberos <none>
ii python-pycurl 7.19.0-5
ii texlive-latex-base 2012.20120611-5
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]