[Xfce4-commits] <xfce4-places-plugin:master> Use a preferred file manager

Andrzej noreply at xfce.org
Tue Aug 28 10:08:01 CEST 2012


Updating branch refs/heads/master
         to 69080e9afba518b8e51d11dbd14c93ab673a6e0a (commit)
       from 4c862cf3eec2c1430bdd96269e1e1581da9cffee (commit)

commit 69080e9afba518b8e51d11dbd14c93ab673a6e0a
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Tue Aug 28 16:29:41 2012 +0900

    Use a preferred file manager

 panel-plugin/support.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/panel-plugin/support.c b/panel-plugin/support.c
index c3c1e9d..ee6b4e2 100644
--- a/panel-plugin/support.c
+++ b/panel-plugin/support.c
@@ -52,12 +52,8 @@ places_load_file_browser(const gchar *path)
 
     if(path != NULL && *path != '\0'){
 
-        if(!gtk_show_uri(NULL, path, 0, &error)){
-            gchar *cmd = g_strconcat("thunar \"", path, "\"", NULL);
-            DBG("exec: %s", cmd);
-            places_gui_exec(cmd);
-            g_free(cmd);
-        }
+        DBG("Open file manager at %s", path);
+        exo_execute_preferred_application("FileManager", path, NULL, NULL, &error);
 
     }else{
 


More information about the Xfce4-commits mailing list