-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Describe the bug
All of the ApplicationCommandLine examples contain the following call:
set_inactivity_timeout (10000);It's not obvious why this is needed (removing it seems to cause no harm), and examples 1 & 4 hang for 10s if invoked without command line arguments (however, examples 0 and 3 do not).
I looked at the corresponding C examples in the GLib repo, and only one of them, example 3, suffers from the hang, though again all contain the timeout call. I have also filed https://gitlab.gnome.org/GNOME/glib/-/issues/3615
Expected behavior
I'm not exactly sure what to expect, since I haven't been able to understand what the default state of the reference count is in the application. For example, is there an initial count of 0, and hence the timeout is needed to avoid a race condition?
But in any case, the examples should not hang when invoked with no arguments.