Patrick Ohly wrote:
1. On UI startup: Call Server.GetConfig() onto get config value
{"","defaultPeer"}. I assume using "default" as configuration/template
name would work.
No. "default" is the name of a peer. If you don't have such a
configuration, the call with fail.
What you want is either "" (empty string) or "@default" (same thing,
spelled out explicitly) to select the default context in which peers are
configured. That way you get a config which contains all shared
properties, including "defaultPeer", without any of the peer-specific
properties.
This is what I tried first and failed, but I tried again and see that it
does work with template=False.
2. When saving a configuration and setting it as default: Call
Session.SetConfig() for configuration <name> with {"", "defaultPeer",
"<name>"} in it.
I assume that "<name>" refers to an old-style config with no shared
properties. Use "" or "@default" when saving and it'll end up in
~/.config/default/config.ini, as expected.
Ah, ok. I'll add another call then.
Thanks.
- Jussi
_______________________________________________
SyncEvolution mailing list
[email protected]
http://lists.syncevolution.org/listinfo/syncevolution