From be3835014e096158e05ae4811b51bb2e5ad186e7 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 26 Sep 2014 11:26:20 +0300 Subject: [PATCH] Make sure to spawn the corresponding properties(1) binary --- src/plugins/volumes.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/plugins/volumes.c b/src/plugins/volumes.c index a94c6d2..1b495e6 100644 --- a/src/plugins/volumes.c +++ b/src/plugins/volumes.c @@ -38,9 +38,17 @@ # include #endif #include "Browser.h" +#include "../../config.h" #define _(string) gettext(string) #define N_(string) (string) +#ifndef PREFIX +# define PREFIX "/usr/local" +#endif +#ifndef BINDIR +# define BINDIR PREFIX "/bin" +#endif + /* Volumes */ /* private */ @@ -576,8 +584,9 @@ static void _volumes_on_properties(GtkWidget * widget, gpointer data) Volumes * volumes = data; BrowserPluginHelper * helper = volumes->helper; gchar * mountpoint; - char * argv[] = { "properties", "--", NULL, NULL }; - const unsigned int flags = G_SPAWN_SEARCH_PATH; + char * argv[] = { BINDIR "/properties", "properties", "--", NULL, + NULL }; + const unsigned int flags = G_SPAWN_FILE_AND_ARGV_ZERO; GError * error = NULL; mountpoint = g_object_get_data(G_OBJECT(widget), "mountpoint");