After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657984 - There needs to be somewhere to set the default eds addressbook
There needs to be somewhere to set the default eds addressbook
Status: RESOLVED DUPLICATE of bug 654908
Product: gnome-contacts
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Contacts maintainer(s)
GNOME Contacts maintainer(s)
Depends on:
Blocks: 659040
 
 
Reported: 2011-09-01 18:11 UTC by Alexander Larsson
Modified: 2011-09-20 10:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexander Larsson 2011-09-01 18:11:20 UTC
Right now if you enable google contacts via goa an eds addressbook is created, but the default is still the local one. You need to switch the default from evolution. This should be possible to set up without starting evolution somehow.

Maybe we want a switch in the goa control center panel, or maybe we just want it to always be the default if the local addressbook hasn't been set up.
Comment 1 Matthew Barnes 2011-09-01 18:52:08 UTC
The accounts rewrite I'm trying to finish up for 3.4 will strip Evolution of its special ESource powers and make it (hopefully) just another E-D-S client.

Details:
http://mail.gnome.org/archives/evolution-hackers/2011-August/msg00025.html

The new libedataserver API:
http://mbarnes.fedorapeople.org/account-mgmt/docs/libedataserver/index.html


For now the Evolution module will have to handle it.  My thought was to automatically make the Google address book and/or calendar the default if the only other ESource present is the built-in "Personal" one.
Comment 2 Alexander Larsson 2011-09-01 18:55:56 UTC
Does that mean we have to start evolution? If so, maybe you can add some hack where we can run it in "just create address books mode"?
Comment 3 Matthew Barnes 2011-09-01 19:04:30 UTC
Yeah, Evolution has to be started for the online-accounts module to run, notice any new GOA accounts, set up ESources for them, and then stuff them into GConf so the D-Bus services pick them up.
Comment 4 Alexander Larsson 2011-09-02 08:05:50 UTC
So, can we add a --create-default-addressbooks commandline argument to evolution?
Comment 5 Matthew Barnes 2011-09-02 16:31:28 UTC
That would be a very short-lived command line argument, and would require refactoring more Evolution startup code than I'm comfortable doing at this late date (it's already pretty complicated and brittle).

I think we just have to live with this for 3.2.  The mailing list post I linked to above puts forth a proper solution for 3.4 - namely a new D-Bus service to handle ESource management.

I can look at fixing the default address book issue for 3.2 though.
Comment 6 Alexander Larsson 2011-09-20 10:38:26 UTC
We now support creating eds system and goa addressbooks from gnome-contacts, and we automatically set GOA addressbooks as default if there is no other addressbook marked as default. So, this bug is now only about having a UI for this, which is a dup of 654908, so closing as dup.

*** This bug has been marked as a duplicate of bug 654908 ***