From f184ccf0efcd52d455f8af13aae3d8eeeeefbfaa Mon Sep 17 00:00:00 2001
From: Tim K <tpkuester@gmail.com>
Date: Mon, 1 Jun 2015 15:31:04 -0400
Subject: grc: better Popen argument handling for CLI based apps

"python -u ..." argument to "xterm -e" should be treated as all one argument
---
 grc/python/Generator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'grc/python/Generator.py')

diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index a3f9f10fc1..fc1dd56f50 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -129,7 +129,7 @@ class TopBlockGenerator(object):
         # when in no gui mode on linux, use a graphical terminal (looks nice)
         xterm_executable = find_executable(XTERM_EXECUTABLE)
         if self._generate_options == 'no_gui' and xterm_executable:
-            cmds = [xterm_executable, '-e'] + cmds
+            cmds = [xterm_executable, '-e'] + ' '.join(cmds)
 
         p = subprocess.Popen(
             args=cmds, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
-- 
cgit v1.2.3