dx-packages team mailing list archive
-
dx-packages team
-
Mailing list archive
-
Message #00138
[Bug 1213999] Re: Provide easy way for OEMs to override default settings
Closing as Invalid as a different solution will be used.
** Changed in: d-conf (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of DX
Packages, which is subscribed to d-conf in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1213999
Title:
Provide easy way for OEMs to override default settings
Status in “d-conf” package in Ubuntu:
Invalid
Bug description:
Part of the requirements is to allow the OEMs to be able to override
some settings that are stored in dconf (for example which lens pages
in the dash are visible by default). Usually we'd just add a new
.override file into /usr/share/glib-2.0/schemas, but this will not be
possible for the OEMs as any changes they make will not change the
base Ubuntu image.
A solution that we agreed upon is to extend our XDG_DATA_DIRS (we'll
prepend a new "/custom" path to the dirs where the OEM's overlay will
be mounted), but since dconf doesn't support this type of layering
(real schema in /usr/share/glib-2.0/schemas and possible defaults
overrides in /custom/...), we decided to add a symlink in
/usr/share/glib-2.0/schemas/xyz-oem-gschema.override which will point
to the override file in the OEM overlay ("/custom/..." - TBD).
Once we have the override file in place, we need to recompile the
schemas (by invoking glib-compile-schemas), to make sure the new
defaults are accounted for, although this will have to be done in a
boot script (ideally with a stamp file so we don't unnecessarily
recompile it on each boot).
With this solution we allow the operators to change default settings,
while still being able to upgrade the base image and change the
shipped schemas (but keeping the OEM overrides in place). Plus if the
operator ships applications that have their own schemas, this is still
possible by compiling a separate set of schemas in the overlay. And on
top of everything we don't need to change our apps/daemons to check
special OEM schemas that might and might not be installed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/d-conf/+bug/1213999/+subscriptions