From 02285f0a8407aa5811e2f06c5e415816771e7e7c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 6 Jan 2007 09:45:12 +0000 Subject: [PATCH] [misc] more robust KDE integration. fixes #2872, #2871 --- src/gtkgui_helpers.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gtkgui_helpers.py b/src/gtkgui_helpers.py index b34ae4b8c..85ebd3927 100644 --- a/src/gtkgui_helpers.py +++ b/src/gtkgui_helpers.py @@ -657,8 +657,9 @@ def possibly_set_gajim_as_xmpp_handler(): # setting for KDE if path_to_kde_file is not None: # user has run kde at least once - f = open(path_to_kde_file, 'a') - f.write('''\ + try: + f = open(path_to_kde_file, 'a') + f.write('''\ [Protocol] exec=%s "%%u" protocol=xmpp @@ -673,7 +674,9 @@ deleting=false icon=gajim Description=xmpp ''' % command) - f.close() + f.close() + except: + pass try: import gconf