From 66cce08d4d5675d82d447546abfbb3177552b308 Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 27 Oct 2005 05:01:54 +0000 Subject: win32: read mime.types in startup directory. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@690 ee746299-78ed-0310-b773-934348b2243d --- libsylph/procmime.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libsylph') diff --git a/libsylph/procmime.c b/libsylph/procmime.c index 102f90ab..e9e53d6f 100644 --- a/libsylph/procmime.c +++ b/libsylph/procmime.c @@ -1046,12 +1046,20 @@ static GHashTable *procmime_get_mime_type_table(void) GList *list; gchar *dir; +#ifdef G_OS_WIN32 + dir = g_strconcat(get_startup_dir(), + G_DIR_SEPARATOR_S "etc" G_DIR_SEPARATOR_S + "mime.types", NULL); + mime_type_list = procmime_get_mime_type_list(dir); + g_free(dir); +#else mime_type_list = procmime_get_mime_type_list(SYSCONFDIR "/mime.types"); if (!mime_type_list) { list = procmime_get_mime_type_list("/etc/mime.types"); mime_type_list = g_list_concat(mime_type_list, list); } +#endif dir = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, "mime.types", NULL); list = procmime_get_mime_type_list(dir); -- cgit v1.2.3