Rewrite legacy app handler's command-line to use D-Bus
authorJonathan Maw <jonathan.maw@codethink.co.uk>
Mon, 9 Jul 2012 15:15:07 +0000 (16:15 +0100)
committerJonathan Maw <jonathan.maw@codethink.co.uk>
Tue, 10 Jul 2012 11:18:46 +0000 (12:18 +0100)
commita077d424287efd8d82f03f5d5c31c2ec7f695d9a
tree40516f83b0551dae04227dbcacb10a1058f2d01e
parentbeac0e70767b2e4945a239bbac2cb3bcbea46faf
Rewrite legacy app handler's command-line to use D-Bus

The GApplication object's command-line method does not work when the
application is running on the system bus. The solution is to use D-Bus
calls to communicate with the primary instance instead.

If the executable is called with command-line arguments, instead of
starting a GApplication it calls the Register() and Deregister()
methods instead.

This commit also adds all the necessary changes so that the legacy app
handler can be D-Bus activated on the system bus and started with
systemd.
configure.ac
legacy-app-handler/Makefile.am
legacy-app-handler/dbus/Makefile.am [new file with mode: 0644]
legacy-app-handler/dbus/org.genivi.LegacyAppHandler1.service.in [moved from legacy-app-handler/org.genivi.LegacyAppHandler1.service.in with 70% similarity]
legacy-app-handler/la-handler-application.c
legacy-app-handler/main.c
legacy-app-handler/systemd/Makefile.am [new file with mode: 0644]
legacy-app-handler/systemd/org.genivi.LegacyAppHandler1.service.in [new file with mode: 0644]