summary refs log tree commit diff
path: root/pkgs/applications/networking/mailreaders/claws-mail/mime.patch
blob: 2ff4269c3329ef375380b2776f71cb5f9bf6259e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
 
 	if (mime_type_list) 
 		return mime_type_list;
-	
-#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
-	if ((fp = claws_fopen(DATAROOTDIR "/mime/globs", "rb")) == NULL) 
-#else
-	if ((fp = claws_fopen("/usr/share/mime/globs", "rb")) == NULL) 
-#endif
+
+	if ((fp = claws_fopen("@MIMEROOTDIR@/mime/globs", "rb")) == NULL)
 	{
 		fp_is_glob_file = FALSE;
 		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;
 			}