Manual modification of %gconf-tree.xml

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Manual modification of %gconf-tree.xml

David BERCOT
Hi,

I'm back, in 2006, with my Evolution problems ;-)
I have two different configurations on my notebook (one at home and the other at work).
Before the unification of %gconf, I dynamically changed the %gconf.xml of Evolution. Now, it's not possible any more.

I think about changing only a piece of %gconf-tree.xml (the one concerning mail configuration).
Do you think it is a good idea ?
Do you think I won't break anything else ?
Do you know with which tool I can do this ?

Thank you very much.

David.


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Manual modification of %gconf-tree.xml

Ross Burton
On Wed, 2006-01-04 at 15:52 +0100, David BERCOT wrote:
> 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.

> Do you know with which tool I can do this ?

Use gconftool to modify keys:

gconftool --type string --set /foo/bar "Some string"

etc

Ross
--
Ross Burton                                 mail: [hidden email]
                                          jabber: [hidden email]
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF


signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Manual modification of %gconf-tree.xml

Josselin Mouette
In reply to this post by David BERCOT
Le mercredi 04 janvier 2006 à 15:52 +0100, David BERCOT a écrit :

> Hi,
>
> I'm back, in 2006, with my Evolution problems ;-)
> I have two different configurations on my notebook (one at home and the other at work).
> Before the unification of %gconf, I dynamically changed the %gconf.xml of Evolution. Now, it's not possible any more.
>
> I think about changing only a piece of %gconf-tree.xml (the one concerning mail configuration).
> Do you think it is a good idea ?
> Do you think I won't break anything else ?
> Do you know with which tool I can do this ?

As of gconf2 2.12.1-5, it is possible to disable the migration to the
merged %gconf-tree.xml layout. Just remove that file and touch
~/.gconf/DONT-MIGRATE. There is more information in README.Debian.

Regards,
--
 .''`.           Josselin Mouette        /\./\
: :' :           [hidden email]
`. `'                        [hidden email]
   `-  Debian GNU/Linux -- The power of freedom

Reply | Threaded
Open this post in threaded view
|

Re: Manual modification of %gconf-tree.xml

David BERCOT
In reply to this post by David BERCOT
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.



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]