From 7e4166c28835a8feca35f366d5716c415b905384 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 29 Oct 2010 11:51:24 +0200 Subject: [PATCH] fix call to set_restart_command for gnome session handling --- src/gajim.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index b8a6aa847..a405078b1 100644 --- a/src/gajim.py +++ b/src/gajim.py @@ -413,11 +413,16 @@ if __name__ == '__main__': cli.connect('die', die_cb) path_to_gajim_script = gtkgui_helpers.get_abspath_for_script( - 'gajim') + 'gajim') if path_to_gajim_script: argv = [path_to_gajim_script] - cli.set_restart_command(len(argv), argv) + try: + cli.set_restart_command(argv) + except TypeError: + # Fedora systems have a broken gnome-python wrapper for this + # function. + cli.set_restart_command(len(argv), argv) check_paths.check_and_possibly_create_paths()