Philipp Hörist pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/application.py
    ... ... @@ -310,17 +310,17 @@ class GajimApplication(Gtk.Application):
    310 310
             options = command_line.get_options_dict()
    
    311 311
     
    
    312 312
             remote_commands = [
    
    313
    -            'ipython',
    
    314
    -            'show-next-pending-event',
    
    315
    -            'start-chat',
    
    313
    +            ('ipython', None),
    
    314
    +            ('show-next-pending-event', None),
    
    315
    +            ('start-chat', GLib.Variant('s', '')),
    
    316 316
             ]
    
    317 317
     
    
    318 318
             remaining = options.lookup_value(GLib.OPTION_REMAINING,
    
    319 319
                                              GLib.VariantType.new('as'))
    
    320 320
     
    
    321
    -        for cmd in remote_commands:
    
    321
    +        for cmd, parameter in remote_commands:
    
    322 322
                 if options.contains(cmd):
    
    323
    -                self.activate_action(cmd)
    
    323
    +                self.activate_action(cmd, parameter)
    
    324 324
                     return 0
    
    325 325
     
    
    326 326
             if remaining is not None: