Skip to content
Snippets Groups Projects
Commit 02285f0a authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 72a632c7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment