We were getting our length zero, yet NULL-terminated arrays in a twist in some places. Stop passing around ignored length arguments at the same time. https://bugzilla.gnome.org/show_bug.cgi?id=635099
Reported-By: Sebastien Bacher <firstname.lastname@example.org> https://bugzilla.gnome.org/show_bug.cgi?id=642490
g_variant_new("as", NULL); now gives an empty array of strings, for example. This was documented as working already, but was never actually implemented (due to the fact that it muddies the water when considering maybe types). It's being implemented now because its convenience to programmers exceeds any damage done to the conceptual purity of the API.
This will help applications such as zeitgeist's datahub to collect more complete information about application launches, as the "actor" of a launch is important for zeitgeist's magic to work properly.
If we were the initial connection owner, unref will destroy the connection immediately, and we may lose messages. Asynchronously flush to avoid that. https://bugzilla.gnome.org/show_bug.cgi?id=641411