Gio.Application::command-line

connect('command-line', function (application, command_line: Gio.ApplicationCommandLine, ): Number(gint));
  

The ::command-line signal is emitted on the primary instance when a commandline is not handled locally. See Gio.Application.prototype.run and the Gio.ApplicationCommandLine documentation for more information.

application

instance of Gio.Application that is emitting the signal

command_line

a Gio.ApplicationCommandLine representing the passed commandline

Returns

An integer that is set as the exit status for the calling process. See Gio.ApplicationCommandLine.prototype.set_exit_status.