--- a/Smalltalk.st Fri Jun 10 04:05:24 2016 +0000
+++ b/Smalltalk.st Mon Jun 13 14:06:28 2016 +0200
@@ -4008,7 +4008,10 @@
[
Screen openDefaultDisplay:nil.
] on:Screen deviceOpenErrorSignal do:[:ex|
- ('%1 [error]: No display connection to: %2' bindWith:commandName with:ex parameter) errorPrintCR.
+ "do not use #errorPrintCR, it is no error, when an app supports display and no display.
+ in case shell exec 'app --version' we do not want this error string as part of the output"
+ ('%1 [error]: No display connection to: %2' bindWith:commandName with:ex parameter) infoPrintCR.
+"/ ('%1 [error]: No display connection to: %2' bindWith:commandName with:ex parameter) errorPrintCR.
(commandName, ' [info]: Either set the DISPLAY environment variable,') infoPrintCR.
(commandName, ' [info]: or start smalltalk with a -display argument.') infoPrintCR.
HeadlessOperation == true ifFalse:[