From bc53dbbef7e7277f56e87915646be84f1cb45cab Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 7 Sep 2007 21:03:55 +0000 Subject: [PATCH] run the browser auto-detection forst time we run Gajim --- src/gajim.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index 1c5983288..d510e23f8 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -2609,7 +2609,8 @@ class Interface: gajim.config.set_per('themes', theme_name, o, theme[d.index(o)]) - if gajim.config.get('autodetect_browser_mailer'): + if gajim.config.get('autodetect_browser_mailer') or \ + len(gajim.connections) == 0: gtkgui_helpers.autodetect_browser_mailer() if gajim.verbose: @@ -2645,7 +2646,7 @@ class Interface: if gtk.pygtk_version >= (2, 10, 0) and gtk.gtk_version >= (2, 10, 0): gtk.link_button_set_uri_hook(self.on_launch_browser_mailer, 'url') - self.instances = {'logs': {}} + self.instances = {} for a in gajim.connections: self.instances[a] = {'infos': {}, 'disco': {}, 'gc_config': {},