Closed Rinzwind closed 1 year ago
isHeadless
uses Smalltalk isHeadless
in Pharo. Not sure what is happening here and what has changed. @estebanlm?
Seems related to this: https://github.com/pharo-project/pharo/issues/10727
Just a note: to avoid this issue, we’ve patched smalltalk-CI with an extra method SmalltalkCIPharo9 class>>#isHeadless
implemented as returning the value of Smalltalk isInteractiveGraphic not
.
Thanks for the update, @Rinzwind. Please feel free to contribute the patch and add it to one of the Pharo-specific classes.
@Rinzwind Thanks for the suggestion. I've committed it to our fork of the repo. Are you planning to create a pull request or shall I?
Forgot about this, sorry, please do create the pull request.
Hi @Rinzwind, this is now resolved as per your suggested change to SmalltalkCIPharo9, thanks! Also thank you @fniephaus for accepting the PR so quickly!
When using ‘Pharo64-9.0’ with option ‘--headful’, the image doesn’t stay open as expected:
It does stay open when using ‘Pharo64-8.0’:
The following outputs ‘isHeadless: true’ for the Pharo 9 build, and ‘isHeadless: false’ for the Pharo 8 build: