[Xfce4-commits] <xfce4-panel:master> Directorymenu: Don't pass working dir as argument (bug #8018).

Nick Schermer noreply at xfce.org
Sun Oct 23 18:22:01 CEST 2011


Updating branch refs/heads/master
         to fad7e1e6ec57cc9a2b5719e4ef4f09514505b894 (commit)
       from d29f9ef5f49d7d0a589368a5cbeac036a6c8fe96 (commit)

commit fad7e1e6ec57cc9a2b5719e4ef4f09514505b894
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Oct 23 18:20:37 2011 +0200

    Directorymenu: Don't pass working dir as argument (bug #8018).

 plugins/directorymenu/directorymenu.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/plugins/directorymenu/directorymenu.c b/plugins/directorymenu/directorymenu.c
index ace2a19..b41043e 100644
--- a/plugins/directorymenu/directorymenu.c
+++ b/plugins/directorymenu/directorymenu.c
@@ -630,7 +630,7 @@ directory_menu_plugin_menu_open (GtkWidget   *mi,
   gchar       **binaries = NULL;
   guint         i;
   gboolean      result = FALSE;
-  gchar        *argv[3];
+  gchar        *argv[2];
 
   /* try to work around the exo code and get the direct command */
   rc = xfce_rc_config_open (XFCE_RESOURCE_CONFIG, "xfce4/helpers.rc", TRUE);
@@ -673,8 +673,7 @@ directory_menu_plugin_menu_open (GtkWidget   *mi,
             continue;
 
           argv[0] = filename;
-          argv[1] = working_dir;
-          argv[2] = NULL;
+          argv[1] = NULL;
 
           /* try to spawn the program, if this fails we try exo for
            * a decent error message */


More information about the Xfce4-commits mailing list