Search code examples
startupsmalltalkpharo

Adding stuff to run on startup of Pharo Image


I'd like to add stuff to run at the beginning of a pharo image start-up. Nothing fancy just a call to a class method that is an entry point to my application. I can't find any guides to making smalltalk scripts at startup. Alternatively are there any method which you can add stuff to be done at image startup?


Solution

  • Squeak has a built-in mechanism that will notify selected classes that an image has just been launched. This page explains how to do this. It should also work in Pharo.