[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gconf and defaults



Hi,

gconf2 2.10.1-2 has entered testing. This version brings a long-awaited
feature: defaults are moved from /etc/gconf/gconf.xml.defaults
to /var/lib/gconf/defaults. The former directory will remain as a place
where administrators can set their defaults - and that's still where
gconf-editor will write them.

To support this, a change in debhelper was needed. As Joey allowed me to
NMU it, this is the case as of debhelper 4.9.8.1. No change is required
on the packaging side if you're already using dh_gconf. Please don't
forget to depend on ${misc:Depends}, though.

Simultaneously, as the circular dependency between libgconf2-4 and
gconf2 turned out to be a RC bug, it had to be solved, and this is the
case in gconf2 2.10.1-3. Don't hesitate to torture this version to find
any regressions.

Since gconf2 2.10.1-2, there is also support for places
in /usr/share/gconf where packages can set defaults, without altering
upstream schemas. However, it simply doesn't work, as gconfd stops
recursing into a directory when it doesn't find a %gconf.xml file
inside. I have patched GConf 2.12.0 to make this work, but was
unfortunately unable to backport the patch to 2.10.1. It means the
feature won't be available in 2.10, but it doesn't really matter, as it
was meant to be used only in 2.12 packages.

To make this support easier, I intend to modify dh_gconf again so that
it writes default %gconf.xml files in these directories. For example,
debian/package.gconf would contain:
        /apps/dpl/tentacles 9
        /apps/dpl/tentacle_size 12.7
        /apps/dpl/victim "cute blondie"
        /apps/dpl/with_blood true
and it would generate an appropriate
debian/package/usr/share/gconf/debian.defaults/apps/dpl/%gconf.xml file.
Command-line options could be used to create the file in the
cdd.defaults (for CDD defaults), local.defaults (for local customisation
packages) or local.mandatory directories.

Any comments?
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette@ens-lyon.org
`. `'                        joss@debian.org
   `-  Debian GNU/Linux -- The power of freedom



Reply to: