[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 04/16: grc: For "No GUI" option, you can no
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 04/16: grc: For "No GUI" option, you can now choose which terminal type you like |
Date: |
Sun, 16 Feb 2014 21:11:20 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch master
in repository gnuradio.
commit d9040c9f64de17a86b9288d0f470e194490384d0
Author: Martin Braun <address@hidden>
Date: Sat Feb 1 17:01:15 2014 +0100
grc: For "No GUI" option, you can now choose which terminal type you like
---
grc/grc.conf.in | 1 +
grc/python/Generator.py | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/grc/grc.conf.in b/grc/grc.conf.in
index ace604a..e539d6c 100644
--- a/grc/grc.conf.in
+++ b/grc/grc.conf.in
@@ -5,3 +5,4 @@
[grc]
global_blocks_path = @blocksdir@
local_blocks_path =
+xterm_executable = xterm
diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 005ed4c..62e7bca 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -28,6 +28,7 @@ from Constants import \
HIER_BLOCKS_LIB_DIR, FLOW_GRAPH_TEMPLATE
import convert_hier
from .. gui import Messages
+from gnuradio import gr
class Generator(object):
@@ -90,8 +91,9 @@ Add a Misc->Throttle block to your flow graph to avoid CPU
congestion.''')
cmds = [python_exe, '-u', self.get_file_path()] #-u is unbuffered stdio
#when in no gui mode on linux, use an xterm (looks nice)
+ xterm_executable = gr.prefs().get_string('grc', 'xterm_executable',
'xterm')
if self._generate_options == 'no_gui' and 'linux' in
sys.platform.lower():
- cmds = ['xterm', '-e'] + cmds
+ cmds = [xterm_executable, '-e'] + cmds
p = subprocess.Popen(args=cmds, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, shell=False, universal_newlines=True)
return p
- [Commit-gnuradio] [gnuradio] branch master updated (295ba35 -> cf8997c), git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 05/16: grc: move xterm pref to Constants.py, git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 07/16: runtime: warn when dropping asynchronous messages due to full asynch message queue, increase default asynch max buffer depth to 8192, git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 08/16: Merge remote-tracking branch 'nwest/volk-regex', git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 01/16: volk: add regex option to profile, git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 09/16: Merge remote-tracking branch 'mbant/hpd-timing2', git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 02/16: digital: HPD now supports time- and other special tags, can mark rx-time of packets, git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 11/16: Merge remote-tracking branch 'riatsila/patch-3', git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 04/16: grc: For "No GUI" option, you can now choose which terminal type you like,
git <=
- [Commit-gnuradio] [gnuradio] 13/16: logger: setup logger for the tpb scheduler; fixes a swig issue when logger is not present., git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 03/16: digital: HPD consume-behaviour adapted to allow for trigger jitter, git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 10/16: Merge remote-tracking branch 'gnuradio-wg-grc/grc_config_xterm', git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 06/16: grc: format xml fail msg to support python 2.6, git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 12/16: Merge branch 'maint', git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 14/16: blocks: random_pdu (speedup, also allow a byte mask), message_strobe_random (new block, send messages with a known timing distribution), git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 16/16: Merge branch 'maint', git, 2014/02/16
- [Commit-gnuradio] [gnuradio] 15/16: blocks: random_pdu (allow specifying the length modulo for random pdu lengths), git, 2014/02/16