[misc] more robust KDE integration. fixes #2872, #2871

This commit is contained in:
Yann Leboulanger 2007-01-06 09:45:12 +00:00
parent 72a632c76e
commit 02285f0a84
1 changed files with 6 additions and 3 deletions

View File

@ -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