Fremantle: Prestart MicroB if appropriate when reconfiguring browser-switchboard
authorSteven Luo <steven+maemo@steven676.net>
Sat, 28 Aug 2010 03:42:18 +0000 (20:42 -0700)
committerSteven Luo <steven+maemo@steven676.net>
Sat, 28 Aug 2010 07:34:31 +0000 (00:34 -0700)
commit6bbfa71a0fb705e38f30e69fdad8177906050015
tree5775276e90a951db4d0670c16ef2ec17ded6c8ea
parent16ad4992d0c5b982f660e8a533f7c37c77c2fdbe
Fremantle: Prestart MicroB if appropriate when reconfiguring browser-switchboard

If, in changing the browser-switchboard configuration, we go from a
configuration where MicroB is not left running to one where it is, we
should start MicroB in the background in order to make sure that the
MicroB browser window comes up quickly when requested.  Make a
best-effort attempt at this in both the command-line utility and the
GUI, refactoring to give a swb_reconfig() function that can be shared
between the two along the way.

Ideally, we'd also kill MicroB when making a config change in the other
direction, but we don't have an easy way of knowing whether MicroB is
actually in use and we don't want to kill MicroB if it's in use at the
time.
config-ui/Makefile
config-ui/browser-switchboard-config.c
config-ui/browser-switchboard-cp.c
config-ui/save-config.c
config-ui/save-config.h [new file with mode: 0644]
config.h