mirror of
https://github.com/gnuradio/gnuradio-companion.git
synced 2025-12-10 00:42:30 -06:00
GRC: when passing arguments to terminal emulator: individually
The joined argument string is only useful for logging; some terminal emulators seem to accept it (which probably means they pass their one argument to a shell), others fail (gnome-terminal, alacritty, …). By splitting the arguments, this should work on all terminal emulators. Tested against xterm and alacritty, the former still works, the latter now works. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
This commit is contained in:
parent
0990cb2029
commit
2c9f52d7e9
@ -59,7 +59,7 @@ class ExecFlowGraphThread(threading.Thread):
|
||||
if ('gnome-terminal' in xterm_executable):
|
||||
run_command_args = [xterm_executable, '--'] + run_command_args
|
||||
else:
|
||||
run_command_args = [xterm_executable, '-e', run_command]
|
||||
run_command_args = [xterm_executable, '-e'] + run_command_args
|
||||
|
||||
# this does not reproduce a shell executable command string, if a graphical
|
||||
# terminal is used. Passing run_command though shlex_quote would do it but
|
||||
|
||||
@ -50,7 +50,7 @@ class ExecFlowGraphThread(threading.Thread):
|
||||
if ('gnome-terminal' in xterm_executable):
|
||||
run_command_args = [xterm_executable, '--'] + run_command_args
|
||||
else:
|
||||
run_command_args = [xterm_executable, '-e', run_command]
|
||||
run_command_args = [xterm_executable, '-e'] + run_command_args
|
||||
|
||||
# this does not reproduce a shell executable command string, if a graphical
|
||||
# terminal is used. Passing run_command though shlex_quote would do it but
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user