GApplication in Garbage Collected environments would benefit from a g_application_command_line_exit() to enable remote instances to exit.
Submitted by Andrew Cowie
Link to original bug (#682331)
Description
The behaviour of the "command line" capability in GApplication is defined as depending on the lifecycle of the GApplicationCommandLine object.
This is challenging in memory-managed environments because we do not control when the last reference will be dropped by the runtime; although we may have dropped our last reference the runtime will be holding a weak (ie GToggleRef last_ref) reference count to the object, and it may be quite some time before the garbage collector runs to drop this last ref, leading to GObject disposal.
g_application_command_line_exit() or so would allow us to indicated that we have finished processing the arguments, and more importantly, wish the remote to terminate.
AfC
Version: 2.32.x