don't crash when we're not under KDE. Fixes #1445

This commit is contained in:
Yann Leboulanger 2006-01-23 12:45:27 +00:00
parent d533670951
commit 754abfddea
1 changed files with 2 additions and 0 deletions

View File

@ -519,6 +519,8 @@ def possibly_set_gajim_as_xmpp_handler():
if os.path.exists(path_to_dot_kde):
path_to_kde_file = os.path.join(path_to_dot_kde,
'share/services/xmpp.protocol')
if not os.path.exists(path_to_kde_file):
path_to_kde_file = None
else:
path_to_kde_file = None