Re: [Evolution-hackers] Creation of the original address books



On Fri, 2004-06-11 at 09:59 +0200, Damien Sandras wrote:
> 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.
> 
it should be created once you tell e-d-s to open that addressbook, not
when you create the ESource's.

cheers




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]