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 675387 - Store certificates under $XDG_DATA_HOME
Store certificates under $XDG_DATA_HOME
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: general
3.6.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2012-05-03 17:21 UTC by William Jon McCann
Modified: 2013-09-14 16:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2012-05-03 17:21:53 UTC
It seems there are still a couple places where we are reading/storing information in the home directory. It would be great to relocate these to directories defined in the XDG Base Directory spec.

camel/camel-tcp-stream-ssl.c:                   g_get_home_dir (), ".camel_certs", fingerprint, NULL);
camel/camel-tcp-stream-ssl.c:   dir = g_build_filename (g_get_home_dir (), ".camel_certs", NULL);
e_debug_log_dump_to_dated_file (GError **error)
Comment 1 André Klapper 2012-05-04 10:23:57 UTC
Urgh, ~/.camel_certs? 
Isn't that handled by (lib)gnome-keyring nowadays anyway?
Comment 2 Matthew Barnes 2012-05-04 11:50:13 UTC
CamelTcpStreamSSL still talks to NSS and NSPR directly and therefore has to store its own certificates.  Killing off CamelStream and its ilk and moving to GInput/OutputStream will be my next big project now that (I think) the GTls APIs in GIO finally support NSS certificates by way of p11-kit.

But that's a 3.8 target at the earliest.
Comment 3 Matthias Clasen 2012-05-05 19:37:36 UTC
As a stopgap measure, can we relocate it to $XDG_DATA_HOME/evolution/camel_certs ?
I see there already is a camel_cert.db in that location, anyway...
Comment 4 Matthew Barnes 2012-05-14 14:33:06 UTC
Moved certificate storage to $XDG_DATA_HOME/camel_certs for now.

Fixed for Evolution 3.5.2 in:
http://git.gnome.org/browse/evolution-data-server/commit/?id=00c97c7abe96f3507d19a6e6dcd0c3ed2245eadf