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

Re: Manual modification of %gconf-tree.xml



Hi,

> > Do you think it is a good idea ?
> 
> Not by directly modifying the files.
> 
> > Do you think I won't break anything else ?
> 
> You'll totally break gconf.

OK. It's clear ;-)

> > Do you know with which tool I can do this ?
> 
> Use gconftool to modify keys:
> 
> gconftool --type string --set /foo/bar "Some string"

I didn't know that tool. Now, I think it is the best solution but I
don't how writing a list.
In the case of Evolution, I have to change more than a string : a
list...
An example is :
<entry name="accounts" mtime="1136476053" type="list" ltype="string">
                                <li type="string">
                                        <stringvalue>&lt;?xml
version=&quot;1.0&quot;?&gt;
&lt;account name=&quot;[Wanadoo1]&quot;
uid=&quot;1121850692.6322.0@debian-david&quot;
enabled=&quot;false&quot;&gt;&lt;identity&gt;&lt;name&gt;David
</stringvalue>
                                </li>
                                <li type="string">
                                        <stringvalue>&lt;?xml
version=&quot;1.0&quot;?&gt;
&lt;account name=&quot;[Wanadoo2]&quot;
uid=&quot;1121878401.5156.0@debian-david&quot;
enabled=&quot;true&quot;&gt;&lt;identity&gt;&lt;name&gt;David
</stringvalue>
                                </li>
                                <li type="string">
                                        <stringvalue>&lt;?xml
version=&quot;1.0&quot;?&gt;
&lt;account name=&quot;[Wanadoo3]&quot;
uid=&quot;1121883241.5905.0@debian-david&quot;
enabled=&quot;true&quot;&gt;&lt;identity&gt;&lt;name&gt;David
</stringvalue>
                                </li>
                                <li type="string">
                                        <stringvalue>&lt;?xml
version=&quot;1.0&quot;?&gt;
&lt;account name=&quot;[Wanadoo4]&quot;
uid=&quot;1121883693.6659.0@debian-david&quot;
enabled=&quot;true&quot;&gt;&lt;identity&gt;&lt;name&gt;David
</stringvalue>
                                </li>
                                <li type="string">
                                        <stringvalue>&lt;?xml
version=&quot;1.0&quot;?&gt;
&lt;account name=&quot;[Wanadoo5]&quot;
uid=&quot;1121883864.6659.3@debian-david&quot;
enabled=&quot;true&quot;&gt;&lt;identity&gt;&lt;name&gt;David
</stringvalue>
                                </li>
                                <li type="string">
                                        <stringvalue>&lt;?xml
version=&quot;1.0&quot;?&gt;
&lt;account name=&quot;[Wanadoo6]&quot;
uid=&quot;1121939555.7066.0@debian-david&quot;
enabled=&quot;false&quot;&gt;&lt;identity&gt;&lt;name&gt;David
</stringvalue>
                                </li>
                                </entry>
And I have to change all this list (in fact, I just have to replace, in
enabled variable, true by false or the opposite).
I searched on google in order to discover a solution but I just found
another tool : gconf-merge. Do you think I can use it ?
Do you have another solution ?

Thank you very much.

David.




Reply to: