GConf rant

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

GConf rant

Josselin Mouette
I've just seen this in the gnome-applets package's postinst:

if [ "$1" = "configure" ]; then
        SCHEMA_LOCATION=/usr/share/gconf/schemas
        GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
        HOME=/root \
                gconftool-2 --direct --config-source=${GCONF_CONFIG_SOURCE} --load ${SCHEMA_LOCATION}/mc-default-macros.entries >/dev/null

    kill -s HUP `pidof gconfd-2` >/dev/null 2>&1 || true
fi

DO NOT *EVER* THINK AGAIN OF DOING SUCH THINGS, ANYONE !

Given the size of /etc/gconf/gconf.xml.defaults this is far from being
the only package to do that.

There is no way to clean properly these additions to the GConf default
source. Furthermore they will overwrite changes from the system
administrator.

If you want to override default values from upstream, please read the
dh_gconf manual page.
--
 .''`.           Josselin Mouette        /\./\
: :' :           [hidden email]
`. `'                        [hidden email]
  `-  Debian GNU/Linux -- The power of freedom

signature.asc (196 bytes) Download Attachment