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