GNOME Bugzilla – Bug 651997
Dummy backend for gapplication
Last modified: 2011-11-22 23:02:14 UTC
Created attachment 189331 [details] unfinished example of dummy gapplication by Hans Breuer On Windows and Mac, gapplication based apps fail to start. While waiting for native/better backend on the different OS, we could use a simple dummy backend as proposed by Hans Breuer. http://mail.gnome.org/archives/gtk-devel-list/2011-April/msg00046.html (attached his experimental patch)
A better suggestion may be to simply attempt to connect to the bus and, if that fails, proceed anyway -- as a non-unique application that makes no attempt to synchronise with other instances.
Created attachment 201956 [details] [review] 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.
Attachment 201956 [details] pushed as 345688c - GApplication: don't fail if can't get session bus
thanks!