Re: question about gconf



Hi,

On Wed, 2004-08-04 at 01:58, Wang Qiang wrote:
> help!
> what's the relationship between the following directories?
> /etc/gconf/schemas
> /etc/gconf/gconf.xml.defaults

	Have you read this?

  http://www.gnome.org/projects/gconf/

	It should answer most of your questions.

	You could also read:

  http://www.gnome.org/learn/admin-guide/latest/

> i think the relationship is:
> programs stores their schema files in
> /etc/gconf/schemas,when the system is started gconfd reads
> info from /etc/gconf/schemas and generates the corresponding
> .xml files and stores them in /etc/gconf/gconf.xml.defaults.

	No, the daemon never reads the .schema files. The schemas are installed
using gconftool-2 --makefile-install-rule when the program is being
installed. This process is what creates the files in
/etc/gconf/gconf.xml.defaults.

> when the user first run the program,the program searches
> /etc/gconf/gconf.xml.defaults and gets the default info,if
> the user does some change to the default settings the info
> will be stored in $home/.gconf/.

	Yes.

> so,what will happen when i remove some .xml files in
> /etc/gconf/gconf.xml.defaults.
> i thought a new .xml file could be generated,but things
> seems didn't go that way.And i'm sure it's the first time i
> run that program.

	Something like this would do it:

$> gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults --install-schema-file=/etc/gconf/schemas/metacity.schemas

Cheers,
Mark.




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