Updates:
Status: FixReviewNeeded
Comment #1 on issue 6305 by
[hidden email]: StartupPreferences "run
once" broken
http://code.google.com/p/pharo/issues/detail?id=6305Fix in inbox:
SLICE-Issue-6305-StartupPreferences-run-once-broken-SeanDeNigris.1
Port StartupAction>>execute from Pharo 2.0, which seems to be working.
Manually tested in 1.4 with:
| item1 item2 |
item1 := StartupAction name: 'Open Help' code: 'Workspace
openContents: ''Here is just an example of how to use the StartupLoader.
I should only be displayed once.
You can also see StartupLoader class>>#example'' label: ''Help''' runOnce:
true.
item2 := StartupAction name: 'Open Workspace' code: [ Workspace
openContents: 'I should be displayed each time' ].
" StartupLoader default addAtStartup: {item1. item2}."
FileLocator imageDirectory ensureDirectory / StartupLoader default
startupScriptName fileStreamDo: [ :str |
str nextPutAll: (StartupLoader default buildStreamFor: {item1. item2}) ].
StartupLoader default loadStartupScript.
StartupLoader default loadStartupScript.
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker