[gnome-commander] Use quoted name when executin an executable file, fixing #98



commit 0c5b2c9d445fb8aed8071f091bbe56ad91949cec
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Tue Mar 9 23:13:07 2021 +0100

    Use quoted name when executin an executable file, fixing #98

 src/gnome-cmd-file.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 33a9e911..dafbc910 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -997,7 +997,7 @@ void GnomeCmdFile::execute()
 {
     gchar *fpath = get_real_path();
     gchar *dpath = g_path_get_dirname (fpath);
-    gchar *cmd = g_strdup_printf ("./%s", info->name);
+    gchar *cmd = g_strdup_printf ("./%s", this->get_quoted_name());
 
     run_command_indir (cmd, dpath, app_needs_terminal (this));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]