Hi Michel, > On 13 Dec 2016, at 10:25, Michel Onoff <[email protected]> wrote: > > Hi, > > is there a way to register arbitrary code to be run at image start-up and > shutdown? > > Thanks > Michel
Sure, that is possible and common. Have a look at the 'system startup' protocol of TBehavior (as implemented by classes) and look for the startUp & shutDownmessages. There is also the 'snapshot and quit' protocol of SmalltalkImage with messages like addDeferredStartupAction: and addToStartUpList: In newer Pharo images (5+ I think), SessionManager is your friend, a cleaner rewrite. Sven
