aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r--mail/em-format-html.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index a1faece46a..fd54e08696 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -254,9 +254,12 @@ em_format_html_get_type(void)
sizeof(EMFormatHTML), 0,
(GInstanceInitFunc)efh_init
};
- const char *base_directory = mail_component_peek_base_directory (mail_component_peek ());
+ const char *base_directory = e_get_user_data_dir ();
char *path;
+ /* Trigger creation of mail component. */
+ mail_component_peek ();
+
efh_parent = g_type_class_ref(em_format_get_type());
type = g_type_register_static(em_format_get_type(), "EMFormatHTML", &info, 0);