Hello,
I've synchronised a GConf key successfully! ;-)
First of all is needed enable the key
"/apps/online-prefs-sync/enabled":
gconftool-2 -s --type bool /apps/online-prefs-sync/enabled true
To set this variable I've defined a file "myapp.schema" with the schema
for this key:
<gconfschemafile>
<schemalist>
<schema>
<key>/schemas/apps/myapp/mykey</key>
<applyto>/apps/myapp/mykey</applyto>
<owner>myapp</owner>
<type>string</type>
<default>default_value</default>
<locale name="C">
<short>Short description for this key</short>
<long>Long description for this key</long>
</locale>
</schema>
</schemalist>
</gconfschemafile>
And I've installed it with:
gconftool --install-schema-file=myapp.schema
I've set a value for this key with:
gconftool-2 -s --type string /apps/myapp/mykey VALUE
Later I've added the next line at the end of file
"~/od/install/share/online-prefs-sync/online-prefs-sync.synclist":
<key name="/desktop/gnome/myapp/myvar" scope="saved-per-user"
priority="lowest"/>
And recompile only this module:
jhbuild buildone online-desktop
And when I modify this key on an Online Desktop session in one computer
and later I start another Online Desktop session in another computer and
read the key, it's synchronised.
To read the variable you can use:
gconftool-2 -g /apps/myapp/mykey
Or if you prefer you can use "gnome-editor" to read and modify the key.
Best regards,
Rego
--
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego igalia com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com
Attachment:
signature.asc
Description: This is a digitally signed message part