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


Commits:
32a5c0e9 by lovetox at 2020-10-16T21:42:08+02:00
Application: Fix --start-chat command

It needs a parameter

- - - - -


1 changed file:

- gajim/application.py


Changes:

=====================================
gajim/application.py
=====================================
@@ -310,17 +310,17 @@ class GajimApplication(Gtk.Application):
         options = command_line.get_options_dict()
 
         remote_commands = [
-            'ipython',
-            'show-next-pending-event',
-            'start-chat',
+            ('ipython', None),
+            ('show-next-pending-event', None),
+            ('start-chat', GLib.Variant('s', '')),
         ]
 
         remaining = options.lookup_value(GLib.OPTION_REMAINING,
                                          GLib.VariantType.new('as'))
 
-        for cmd in remote_commands:
+        for cmd, parameter in remote_commands:
             if options.contains(cmd):
-                self.activate_action(cmd)
+                self.activate_action(cmd, parameter)
                 return 0
 
         if remaining is not None:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/32a5c0e9c28fdde96d6140277368a476478527cf

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/32a5c0e9c28fdde96d6140277368a476478527cf
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to