openbsd-ports/x11/pcmanfm/patches/patch-src_xdgmime_xdgmime_c
ajacoutot a8875ab83c - fix a SIGSEGV under amd64 (and possibly other archs too) by telling
pcmanfm where to look for mime.cache instead of letting try to access
non existent directories

from Benoit Chesneau <bchesneau at gmail dot com>, thanks!
2007-09-18 06:23:28 +00:00

16 lines
516 B
Plaintext

$OpenBSD: patch-src_xdgmime_xdgmime_c,v 1.1 2007/09/18 06:23:28 ajacoutot Exp $
--- src/xdgmime/xdgmime.c.orig Fri Oct 27 19:51:44 2006
+++ src/xdgmime/xdgmime.c Tue Sep 18 08:10:53 2007
@@ -219,7 +219,11 @@ void xdg_run_command_on_dirs ( XdgDirectoryFunc func,
xdg_data_dirs = getenv ( "XDG_DATA_DIRS" );
if ( xdg_data_dirs == NULL )
+#ifdef __OpenBSD__
+ xdg_data_dirs = "!!LOCALBASE!!/share";
+#else
xdg_data_dirs = "/usr/local/share:/usr/share";
+#endif
ptr = xdg_data_dirs;