aboutsummaryrefslogtreecommitdiff
path: root/libsylph/procmime.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-27 05:01:54 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-27 05:01:54 +0000
commit66cce08d4d5675d82d447546abfbb3177552b308 (patch)
tree3c38eee18efdc54ee093ddf9dcc0fa7c49ea4859 /libsylph/procmime.c
parentb539e5dffe69a583b88058dd990d01833b5a87f3 (diff)
win32: read mime.types in startup directory.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@690 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/procmime.c')
-rw-r--r--libsylph/procmime.c8
1 files changed, 8 insertions, 0 deletions
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);