[Evolution-hackers] Creation of the original address books
Damien Sandras
dsandras@seconix.com
Fri, 11 Jun 2004 09:59:36 +0200
--=-cPCgFjP5D4BcK6NLgIwv
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hello,
> FWIW this url isn't correct, it needs three ///'s and don't use ~.
>=20
> use e.g.
> uri =3D g_strdup_printf("file:///%s/.evolution/addressbook/local",
> g_get_home_dir());
>=20
> although that assumes the home dir path is url safe.
>=20
> no idea if this has any bearing on the issue, i doubt it.
>=20
Unfortunately not :-(
.evolution is not created, and even if I manually create it, nothing
happens.
That's the exact portion of code :
filename =3D g_strdup_printf ("file:///%s/.evolution/addressbook/
local/",
g_get_home_dir ());
on_this_computer =3D
e_source_group_new ("On This Computer", filename);
e_source_list_add_group (source_list, on_this_computer, -1);
source =3D e_source_new ("Personal", "system");
e_source_group_add_source (on_this_computer, source, -1);
=
=20
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 =3D e_source_new ("Personal", "system");
> > e_source_group_add_source (on_this_computer, source, -1);
> > =
=20
> > e_source_list_sync (source_list, NULL);
> > }
> >=20
> > 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 :(
> =20
> > 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.
>=20
> Actually making it in evolution's location, if evolution didn't do it,
> may not be the way to go.
> --=20
>=20
> Michael Zucchi <notzed@ximian.com>
>=20
> Ximian Evolution and Free Software
> Developer
--=20
_ Damien Sandras
(o- GnomeMeeting: http://www.gnomemeeting.org/
//\ FOSDEM : http://www.fosdem.org
v_/_ H.323 phone : callto:ils.seconix.com/dsandras@seconix.com
--=-cPCgFjP5D4BcK6NLgIwv
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Ceci est une partie de message
=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQBAyWZodKWF9b5oMbURApuOAJ45QezzIwXXjkxWzkC+ZuwNvOs4KQCeLQ1X
YKwCwXpT9MUbZ8wgQwKSEtE=
=pZCX
-----END PGP SIGNATURE-----
--=-cPCgFjP5D4BcK6NLgIwv--