GApplication: add --gapplication-service switch
authorRyan Lortie <desrt@desrt.ca>
Sat, 26 Oct 2013 16:27:20 +0000 (12:27 -0400)
committerRyan Lortie <desrt@desrt.ca>
Thu, 9 Jan 2014 21:15:53 +0000 (16:15 -0500)
commite8b7dd32fcfb4be82d3d78561fc36fbc560f3394
tree1b44f1d3184c9bce66297f22bb742e019312adaa
parent8bc63b0ef03ee431eeaaf12191cb2cf983ee7de2
GApplication: add --gapplication-service switch

Add a --gapplication-service switch to the default implementation of
local_command_line.  This name is unlikely to clash with any option used
by an existing application.

When a normal application (neither service nor launcher) is launched with
exactly this one argument, G_APPLICATION_IS_SERVICE will be set.

The idea is that people will write their D-Bus service file with
--gapplication-service on the Exec line.  This provides a nice
compromise for people who want the benefits of DBusActivatable
applications but without losing the ability to easily run them directly
(under the debugger or inside jhbuild, etc.)

https://bugzilla.gnome.org/show_bug.cgi?id=710965
gio/gapplication.c