Permalink
Browse files

Let the default DATADIR be easily overidden

  • Loading branch information...
1 parent 8ff804c commit 2e393157a01e9578490add31075f990468bdb29b @khorben khorben committed Dec 24, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/mime.c
View
@@ -31,6 +31,9 @@
#ifndef PREFIX
# define PREFIX "/usr/local"
#endif
+#ifndef DATADIR
+# define DATADIR PREFIX "/share"
+#endif
/* Mime */
@@ -74,7 +77,7 @@ Mime * mime_new(GtkIconTheme * theme)
Mime * mime;
char * globs[] =
{
- PREFIX "/share/mime/globs",
+ DATADIR "/mime/globs",
"/usr/share/mime/globs",
"/usr/local/share/mime/globs",
"/usr/pkg/share/mime/globs",

0 comments on commit 2e39315

Please sign in to comment.