[Xfce4-commits] <xfce4-panel:master> Directorymenu: Also send the target directory as arg (bug #7745).

Nick Schermer noreply at xfce.org
Sun Jul 10 10:44:01 CEST 2011


Updating branch refs/heads/master
         to 5f823bd48b21a24a4516abac01084bd85d523cf2 (commit)
       from 73af87e8d9d348d6d120c41c0d783b19fd9fd5f2 (commit)

commit 5f823bd48b21a24a4516abac01084bd85d523cf2
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Jul 10 10:31:48 2011 +0200

    Directorymenu: Also send the target directory as arg (bug #7745).
    
    Not all filemanagers support the working directory as the
    new target, but open the home directory instead.
    To avoid this also send the target directory as first argument
    in the command, basically all file managers support this.

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

diff --git a/plugins/directorymenu/directorymenu.c b/plugins/directorymenu/directorymenu.c
index b41043e..ace2a19 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[2];
+  gchar        *argv[3];
 
   /* 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,7 +673,8 @@ directory_menu_plugin_menu_open (GtkWidget   *mi,
             continue;
 
           argv[0] = filename;
-          argv[1] = NULL;
+          argv[1] = working_dir;
+          argv[2] = 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