GApplication: don't fail if can't get session bus
authorRyan Lortie <desrt@desrt.ca>
Tue, 22 Nov 2011 22:32:04 +0000 (17:32 -0500)
committerRyan Lortie <desrt@desrt.ca>
Tue, 22 Nov 2011 22:35:56 +0000 (17:35 -0500)
commit345688c9e9d811b2844ea573c82be63cb02996ce
tree1c3a34fd921b342d6d8e00481eadf871da6f831b
parent1f02ef3205e810dd937f316f5a7b58ecc2893d59
GApplication: don't fail if can't get session bus

If we can't get on the session bus, just behave like a normal non-unique
application.

This turns out to be remarkably easy to implement and lets us avoid
adding a 'dummy' backend.

Add a test for this case as well.

Idea from Zachary Dovel.

https://bugzilla.gnome.org/show_bug.cgi?id=651997
gio/gapplicationimpl-dbus.c
gio/tests/gapplication.c