summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2015-04-26 16:13:11 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2015-04-26 16:13:11 -0700
commit327f07093aa75ff08a2509f77e8cbf4a840d3eed (patch)
tree6315ab627a107dbabfaf2c1d3cb4e0a95d831f08
parent10c710479a88cf8c6f4fe383541cab63e7139b08 (diff)
parent839b933dd40f876a3a85351462575bac46ffd441 (diff)
Merge remote-tracking branch 'gnuradio-wg-grc/master_grcwg'
-rwxr-xr-xgrc/scripts/gnuradio-companion9
1 files changed, 9 insertions, 0 deletions
diff --git a/grc/scripts/gnuradio-companion b/grc/scripts/gnuradio-companion
index 7a407eaaf8..b8b960a91e 100755
--- a/grc/scripts/gnuradio-companion
+++ b/grc/scripts/gnuradio-companion
@@ -55,6 +55,14 @@ def show_gtk_error_dialog(title, message):
d.run()
+def check_gtk_init():
+ try:
+ gtk.init_check()
+ except RuntimeError:
+ print 'GTK initialization failed - bailing'
+ exit(-1)
+
+
def check_gnuradio_import():
try:
from gnuradio import gr
@@ -108,6 +116,7 @@ def main():
if __name__ == '__main__':
+ check_gtk_init()
check_gnuradio_import()
ensure_blocks_path()
main()