Commit 32a5c0e9 authored by Philipp Hörist's avatar Philipp Hörist

Application: Fix --start-chat command

It needs a parameter
parent abe3fa1f
......@@ -310,17 +310,17 @@ def _command_line(self, _application, command_line):
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment