summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index 8405adeebb..833577fc69 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -28,6 +28,7 @@ import subprocess
28import shlex 28import shlex
29import re 29import re
30import logging 30import logging
31import sys
31from bb.ui.crumbs.template import TemplateMgr 32from bb.ui.crumbs.template import TemplateMgr
32from bb.ui.crumbs.imageconfigurationpage import ImageConfigurationPage 33from bb.ui.crumbs.imageconfigurationpage import ImageConfigurationPage
33from bb.ui.crumbs.recipeselectionpage import RecipeSelectionPage 34from bb.ui.crumbs.recipeselectionpage import RecipeSelectionPage
@@ -458,8 +459,14 @@ class Builder(gtk.Window):
458 self.set_title("Hob") 459 self.set_title("Hob")
459 self.set_icon_name("applications-development") 460 self.set_icon_name("applications-development")
460 self.set_resizable(True) 461 self.set_resizable(True)
461 window_width = self.get_screen().get_width() 462
462 window_height = self.get_screen().get_height() 463 try:
464 window_width = self.get_screen().get_width()
465 window_height = self.get_screen().get_height()
466 except AttributeError:
467 print "Please set DISPLAY variable before running Hob."
468 sys.exit(1)
469
463 if window_width >= hwc.MAIN_WIN_WIDTH: 470 if window_width >= hwc.MAIN_WIN_WIDTH:
464 window_width = hwc.MAIN_WIN_WIDTH 471 window_width = hwc.MAIN_WIN_WIDTH
465 window_height = hwc.MAIN_WIN_HEIGHT 472 window_height = hwc.MAIN_WIN_HEIGHT