2018-12-31 01:42:57 +00:00
|
|
|
diff --git a/src/procmime.c b/src/procmime.c
|
|
|
|
index bd3239e..06a3b26 100644
|
|
|
|
--- a/src/procmime.c
|
|
|
|
+++ b/src/procmime.c
|
|
|
|
@@ -1144,20 +1144,16 @@ GList *procmime_get_mime_type_list(void)
|
|
|
|
MimeType *mime_type;
|
|
|
|
gboolean fp_is_glob_file = TRUE;
|
|
|
|
|
2015-09-18 12:20:16 +01:00
|
|
|
if (mime_type_list)
|
|
|
|
return mime_type_list;
|
2018-12-31 01:42:57 +00:00
|
|
|
-
|
2015-09-18 12:20:16 +01:00
|
|
|
-#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
|
2018-12-31 01:42:57 +00:00
|
|
|
- if ((fp = claws_fopen(DATAROOTDIR "/mime/globs", "rb")) == NULL)
|
2015-09-18 12:20:16 +01:00
|
|
|
-#else
|
2018-12-31 01:42:57 +00:00
|
|
|
- if ((fp = claws_fopen("/usr/share/mime/globs", "rb")) == NULL)
|
2015-09-18 12:20:16 +01:00
|
|
|
-#endif
|
2018-12-31 01:42:57 +00:00
|
|
|
+
|
|
|
|
+ if ((fp = claws_fopen("@MIMEROOTDIR@/mime/globs", "rb")) == NULL)
|
2015-09-18 12:20:16 +01:00
|
|
|
{
|
|
|
|
fp_is_glob_file = FALSE;
|
2018-12-31 01:42:57 +00:00
|
|
|
if ((fp = claws_fopen("/etc/mime.types", "rb")) == NULL) {
|
|
|
|
if ((fp = claws_fopen(SYSCONFDIR "/mime.types", "rb"))
|
|
|
|
== NULL) {
|
|
|
|
FILE_OP_ERROR(SYSCONFDIR "/mime.types",
|
|
|
|
"claws_fopen");
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|