From d72009c6a69a7263396ec4e0857e108252a65c9f Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 25 Apr 2018 03:04:01 +0200 Subject: [PATCH] Use PROGNAME_PROPERTIES for properties(1) --- src/plugins/volumes.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/volumes.c b/src/plugins/volumes.c index f450308..e9f42b2 100644 --- a/src/plugins/volumes.c +++ b/src/plugins/volumes.c @@ -59,6 +59,10 @@ # define BINDIR PREFIX "/bin" #endif +#ifndef PROGNAME_PROPERTIES +# define PROGNAME_PROPERTIES "properties" +#endif + /* Volumes */ /* private */ @@ -998,8 +1002,8 @@ static void _volumes_on_properties(GtkWidget * widget, gpointer data) Volumes * volumes = data; BrowserPluginHelper * helper = volumes->helper; gchar * mountpoint; - char * argv[] = { BINDIR "/properties", "properties", "--", NULL, - NULL }; + char * argv[] = { BINDIR "/" PROGNAME_PROPERTIES, PROGNAME_PROPERTIES, + "--", NULL, NULL }; const unsigned int flags = G_SPAWN_FILE_AND_ARGV_ZERO; GError * error = NULL;