openbsd-ports/x11/emelfm2/patches/patch-src_utils_e2_utils_c
landry 6edbafdc14 Fix file(1) calls, we don't have those fancy options. RUN_DEPENDS on
xdg-utils as a first option, file is only used as a fallback.
Based on a diff from giovanni (MAINTAINER)
2008-10-31 00:03:12 +00:00

14 lines
650 B
Plaintext

$OpenBSD: patch-src_utils_e2_utils_c,v 1.1 2008/10/31 00:03:12 landry Exp $
Our file(1) doesn't have all that fancy options.
--- src/utils/e2_utils.c.orig Wed Oct 22 04:28:11 2008
+++ src/utils/e2_utils.c Thu Oct 30 23:49:56 2008
@@ -466,7 +466,7 @@ gchar *e2_utils_get_mimetype (VPATH *localpath)
{
//xdg command failed, maybe due to no xdg utilities, or unrecognised type
g_free (command);
- command = e2_utils_strcat ("file -bNprs --mime-type ", qp);
+ command = e2_utils_strcat ("file -bNs ", qp);
if (e2_fs_get_command_output (command, (gpointer *) &mime))
{
g_strstrip (mime); //strip trailing \n and any whitespace