Hello, > FWIW this url isn't correct, it needs three ///'s and don't use ~. > > use e.g. > uri = g_strdup_printf("file:///%s/.evolution/addressbook/local", > g_get_home_dir()); > > although that assumes the home dir path is url safe. > > no idea if this has any bearing on the issue, i doubt it. > Unfortunately not :-( .evolution is not created, and even if I manually create it, nothing happens. That's the exact portion of code : filename = g_strdup_printf ("file:///%s/.evolution/addressbook/ local/", g_get_home_dir ()); on_this_computer = e_source_group_new ("On This Computer", filename); e_source_list_add_group (source_list, on_this_computer, -1); source = e_source_new ("Personal", "system"); e_source_group_add_source (on_this_computer, source, -1); e_source_list_sync (source_list, NULL); g_free (filename); Actually, the source group and source appear when being listed, but nothing is created in .evolution, and thus it is impossible to add contacts. > > e_source_list_add_group (source_list, on_this_computer, -1); > > source = e_source_new ("Personal", "system"); > > e_source_group_add_source (on_this_computer, source, -1); > > > > e_source_list_sync (source_list, NULL); > > } > > > > It works, except that after that I can not add contacts to the newly > > created address book... I don't know why. > readonly perhaps? dunno i'm only guessing, i'm really only mail. Not either :( > > > One other thing disturbs me. Am I forced to hardcode the evolution > > directory to have something working? What if you decide to change the > > directory? > I doubt it matters where it is (i could be wrong though). Just so > long as people know where it is, so when they do backups they grab it. > > Actually making it in evolution's location, if evolution didn't do it, > may not be the way to go. > -- > > Michael Zucchi <notzed ximian com> > > Ximian Evolution and Free Software > Developer -- _ Damien Sandras (o- GnomeMeeting: http://www.gnomemeeting.org/ //\ FOSDEM : http://www.fosdem.org v_/_ H.323 phone : callto:ils.seconix.com/dsandras seconix com
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=