[opensuse-gnome] Changing gconf default values without a patch
Hi, I'd like to propose a change in the gconf configuration we're shipping so that we don't have to patches schemas when we only want to change a default value. Also, I'll propose a new package to ship those default values. This can be interesting in many ways: + less patches :-) + easy to remove the opensuse policies (just remove a package) + easy to create another package to ship policies for opensuse derivatives + easy to get upstream defaults Here are the details: 1) First, we change /etc/gconf/2/path to add a new source for the defaults, between the source for systemwide customizations and the source for upstream defaults. It means adding a line like this: "xml:readonly:/etc/gconf/gconf.xml.distro.defaults" 2) Instead of patching schemas files to change the defaults, we create files for those changes and we'll have them installed in a gconf-y way in this new /etc/gconf/gconf.xml.distro.defaults 3) Instead of shipping those new files in each package, we create a gnome-policy-openSUSE package that will ship them I'm not 100% sure we want step 3, but it might be nice. The first two steps should be good, though. What do you think? (Credits: it's implemented this way in Debian) Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
Vincent Untz wrote:
1) First, we change /etc/gconf/2/path to add a new source for the defaults, between the source for systemwide customizations and the source for upstream defaults. It means adding a line like this: "xml:readonly:/etc/gconf/gconf.xml.distro.defaults"
Agree. I just sent my proposal independently on yours while searching for a solution of distro branding.
2) Instead of patching schemas files to change the defaults, we create files for those changes and we'll have them installed in a gconf-y way in this new /etc/gconf/gconf.xml.distro.defaults
What name exactly other distros use?
3) Instead of shipping those new files in each package, we create a gnome-policy-openSUSE package that will ship them
Or follow branding proposal and make it package specific and name it foo-branding-openSUSE -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz Lihovarská 1060/12 tel: +420 284 028 966, +49 911 740538747 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
Le lundi 10 mars 2008, à 16:50 +0100, Stanislav Brabec a écrit :
Vincent Untz wrote:
1) First, we change /etc/gconf/2/path to add a new source for the defaults, between the source for systemwide customizations and the source for upstream defaults. It means adding a line like this: "xml:readonly:/etc/gconf/gconf.xml.distro.defaults"
Agree. I just sent my proposal independently on yours while searching for a solution of distro branding.
:-)
2) Instead of patching schemas files to change the defaults, we create files for those changes and we'll have them installed in a gconf-y way in this new /etc/gconf/gconf.xml.distro.defaults
What name exactly other distros use?
They're using /var/lib/gconf/debian.defaults. (They put schemas in /var/lib/gconf since they're not configuration files that should be modified, and they use /etc/gconf/gconf.xml.defaults for the settings modified by the admins)
3) Instead of shipping those new files in each package, we create a gnome-policy-openSUSE package that will ship them
Or follow branding proposal and make it package specific and name it foo-branding-openSUSE
Well, I was not sure that this should be called branding, but I'm of course fine with this. Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
Vincent Untz wrote:
Le lundi 10 mars 2008, à 16:50 +0100, Stanislav Brabec a écrit :
Vincent Untz wrote:
2) Instead of patching schemas files to change the defaults, we create files for those changes and we'll have them installed in a gconf-y way in this new /etc/gconf/gconf.xml.distro.defaults
What name exactly other distros use?
They're using /var/lib/gconf/debian.defaults. (They put schemas in /var/lib/gconf since they're not configuration files that should be modified, and they use /etc/gconf/gconf.xml.defaults for the settings modified by the admins)
3) Instead of shipping those new files in each package, we create a gnome-policy-openSUSE package that will ship them
Or follow branding proposal and make it package specific and name it foo-branding-openSUSE
Well, I was not sure that this should be called branding, but I'm of course fine with this.
It was introduced in discussion on opensuse-packaging as a generic approach for packages branding (see the whole discussion there). gconf schemas is only an extension of this idea, and it would be nice to follow the naming scheme, so the tool checking and changing branding could handle gconf defaults as well. default bookmarks will be called branding as well. See my patch in a separate mail. (I have no problem with another name of the directory.) -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz Lihovarská 1060/12 tel: +420 284 028 966, +49 911 740538747 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
participants (2)
-
Stanislav Brabec
-
Vincent Untz