Revision 690 libsylph/procmime.c

View differences:

procmime.c
1046 1046
		GList *list;
1047 1047
		gchar *dir;
1048 1048

  
1049
#ifdef G_OS_WIN32
1050
		dir = g_strconcat(get_startup_dir(),
1051
				  G_DIR_SEPARATOR_S "etc" G_DIR_SEPARATOR_S
1052
				  "mime.types", NULL);
1053
		mime_type_list = procmime_get_mime_type_list(dir);
1054
		g_free(dir);
1055
#else
1049 1056
		mime_type_list =
1050 1057
			procmime_get_mime_type_list(SYSCONFDIR "/mime.types");
1051 1058
		if (!mime_type_list) {
1052 1059
			list = procmime_get_mime_type_list("/etc/mime.types");
1053 1060
			mime_type_list = g_list_concat(mime_type_list, list);
1054 1061
		}
1062
#endif
1055 1063
		dir = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S,
1056 1064
				  "mime.types", NULL);
1057 1065
		list = procmime_get_mime_type_list(dir);

Also available in: Unified diff