[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,6 +657,7 @@ 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
try:
f = open(path_to_kde_file, 'a')
f.write('''\
[Protocol]
@ -674,6 +675,8 @@ icon=gajim
Description=xmpp
''' % command)
f.close()
except:
pass
try:
import gconf