diff --git a/src/gtkgui_helpers.py b/src/gtkgui_helpers.py index 23d0b76e2..a1bebe5a5 100644 --- a/src/gtkgui_helpers.py +++ b/src/gtkgui_helpers.py @@ -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