51163fe5e1
Many programs and desktops use the MIME system to represent the types of files. Frequently, it is necessary to work out the correct MIME type for a file. This is generally done by examining the file's name or contents, and looking up the correct MIME type in a database. For interoperability, it is useful for different programs to use the same database so that different programs agree on the type of a file, and new rules for determining the type apply to all programs. This package contains the core database of common types and the update-mime-database command used to extend it.
13 lines
459 B
Text
13 lines
459 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2004/02/14 19:06:08 jmmv Exp $
|
|
|
|
--- update-mime-database.c.orig 2003-10-13 11:43:38.000000000 +0200
|
|
+++ update-mime-database.c
|
|
@@ -1330,7 +1330,7 @@ static void check_in_path_xdg_data(const
|
|
|
|
env = getenv("XDG_DATA_DIRS");
|
|
if (!env)
|
|
- env = "/usr/local/share/:/usr/share/";
|
|
+ env = PREFIX "/share:/usr/local/share/:/usr/share/";
|
|
dirs = g_strsplit(env, ":", 0);
|
|
g_return_if_fail(dirs != NULL);
|
|
for (n = 0; dirs[n]; n++)
|