Support a stateless configuration by default
authorIkey Doherty <michael.i.doherty@intel.com>
Sat, 12 Mar 2016 16:43:16 +0000 (16:43 +0000)
committerMike Gorse <mgorse@suse.com>
Mon, 14 Mar 2016 21:59:30 +0000 (16:59 -0500)
commit2ef0076968e939d14b98425bcfc53ca2dc50f768
tree147ac099b7bdc9f13788043155938bcefbf55839
parent404b3fe9325bd81145a2ce0704b552dcf5f250e2
Support a stateless configuration by default

Using a stateless configuration, we ship sensible defaults in our vendor-config
file to live in the /usr/share/ filesystem, which is considered to be provided
by the vendor, and to all intents and purposes, read-only.

With this change we can fall-back to the vendor system configuration to
always do the right thing, in the absence of a local system administrator
configuration file in the /etc/ tree.

Notably, this saves users from the potential risks and pitfalls of so called
"three way merges" on upgrades, and offers the immediate benefit that one
can perform a factory reset of the software, simply by removing the relevant
file in /etc/.

This change also resolves a memory leak in the launch code, where a string
allocation was entirely unnecessary.

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
bus/Makefile.am
bus/at-spi-bus-launcher.c