Make sure to spawn the corresponding properties(1) binary
This commit is contained in:
parent
21c456858a
commit
be3835014e
@ -38,9 +38,17 @@
|
|||||||
# include <sys/statvfs.h>
|
# include <sys/statvfs.h>
|
||||||
#endif
|
#endif
|
||||||
#include "Browser.h"
|
#include "Browser.h"
|
||||||
|
#include "../../config.h"
|
||||||
#define _(string) gettext(string)
|
#define _(string) gettext(string)
|
||||||
#define N_(string) (string)
|
#define N_(string) (string)
|
||||||
|
|
||||||
|
#ifndef PREFIX
|
||||||
|
# define PREFIX "/usr/local"
|
||||||
|
#endif
|
||||||
|
#ifndef BINDIR
|
||||||
|
# define BINDIR PREFIX "/bin"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Volumes */
|
/* Volumes */
|
||||||
/* private */
|
/* private */
|
||||||
@ -576,8 +584,9 @@ static void _volumes_on_properties(GtkWidget * widget, gpointer data)
|
|||||||
Volumes * volumes = data;
|
Volumes * volumes = data;
|
||||||
BrowserPluginHelper * helper = volumes->helper;
|
BrowserPluginHelper * helper = volumes->helper;
|
||||||
gchar * mountpoint;
|
gchar * mountpoint;
|
||||||
char * argv[] = { "properties", "--", NULL, NULL };
|
char * argv[] = { BINDIR "/properties", "properties", "--", NULL,
|
||||||
const unsigned int flags = G_SPAWN_SEARCH_PATH;
|
NULL };
|
||||||
|
const unsigned int flags = G_SPAWN_FILE_AND_ARGV_ZERO;
|
||||||
GError * error = NULL;
|
GError * error = NULL;
|
||||||
|
|
||||||
mountpoint = g_object_get_data(G_OBJECT(widget), "mountpoint");
|
mountpoint = g_object_get_data(G_OBJECT(widget), "mountpoint");
|
||||||
|
Loading…
Reference in New Issue
Block a user