diff options
Diffstat (limited to 'smime')
-rw-r--r-- | smime/ChangeLog | 7 | ||||
-rw-r--r-- | smime/lib/e-cert-db.c | 14 |
2 files changed, 11 insertions, 10 deletions
diff --git a/smime/ChangeLog b/smime/ChangeLog index d9703c0efa..ce7e36dd7b 100644 --- a/smime/ChangeLog +++ b/smime/ChangeLog @@ -1,3 +1,10 @@ +2008-03-11 Matthew Barnes <mbarnes@redhat.com> + + ** Fixes part of bug #513951 + + * lib/e-cert-db.c (initialize_nss): + Use e_get_user_data_dir() instead of constructing the full path. + 2007-10-09 Matthew Barnes <mbarnes@redhat.com> ** Fixes part of bug #437579 diff --git a/smime/lib/e-cert-db.c b/smime/lib/e-cert-db.c index 91301052af..a224026335 100644 --- a/smime/lib/e-cert-db.c +++ b/smime/lib/e-cert-db.c @@ -87,6 +87,7 @@ #include "plstr.h" #include "prprf.h" #include "prmem.h" +#include "e-util/e-util.h" #include "e-util/e-dialog-utils.h" #include "e-util/e-util-private.h" #include <gtk/gtkmessagedialog.h> @@ -177,18 +178,11 @@ initialize_nss (void) char *evolution_dir_path; gboolean success; - evolution_dir_path = g_build_filename (g_get_home_dir (), ".evolution", NULL); - #ifdef G_OS_WIN32 /* NSS wants filenames in system codepage */ - { - char *cp_path = g_win32_locale_filename_from_utf8 (evolution_dir_path); - - if (cp_path) { - g_free (evolution_dir_path); - evolution_dir_path = cp_path; - } - } + evolution_dir_path = g_win32_locale_filename_from_utf8 (e_get_user_data_dir ()); +#else + evolution_dir_path = g_strdup (e_get_user_data_dir ()); #endif /* we initialize NSS here to make sure it only happens once */ |