Fabio Niephaus uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-fn.1039.mcz==================== Summary ====================
Name: System-fn.1039
Author: fn
Time: 4 August 2018, 3:59:47.821233 pm
UUID: 7a41ec0c-4fbd-4caa-ab2e-4001e53478e7
Ancestors: System-pre.1038
Correctly detect headless mode when '-nodisplay' is used. According to [1], '-nodisplay' "is equivalent to '-vm display=none'".
[1]
https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/e17db79411cfec767e04f3d94d12a642d920a30e/platforms/unix/doc/squeak.1#L582=============== Diff against System-pre.1038 ===============
Item was changed:
----- Method: SmalltalkImage>>isHeadless (in category 'vm parameters') -----
isHeadless
"Answer whether the command-line specified to launch the VM headless."
self optionsDo:
+ [ : each | (#('display=none' '-headless' '-nodisplay' '-vm-display-null' ) includes: each) ifTrue: [ ^ true ] ].
- [ : each | (#('display=none' '-headless' '-vm-display-null' ) includes: each) ifTrue: [ ^ true ] ].
^ false!