Fixes to allow headless image restart.
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 14 Aug 2013 20:22:33 +0200
changeset 1319 e7139ef2e8af
parent 1318 e9fbcd98cb2b
child 1320 84cd02ea97b9
Fixes to allow headless image restart.
display.rc
--- a/display.rc	Tue Jul 16 11:49:58 2013 +0200
+++ b/display.rc	Wed Aug 14 20:22:33 2013 +0200
@@ -228,6 +228,7 @@
 
 display isNil ifTrue:[
     'display.rc [warning]: cannot determine display I am running on' errorPrintCR.
+    ^ self.
 ] ifFalse:[
     "
      if there is a corresponding file d_<displayName>.rc ...
@@ -442,7 +443,7 @@
 |currentScreen|
 
 currentScreen := Screen current.
-currentScreen == Screen default ifTrue:[
+(currentScreen notNil and:[ currentScreen == Screen default]) ifTrue:[
     |depthChange colorChange greyChange reconfigure|
 
     depthChange := false.