[Cuis-dev] I have some issues running the conf. script file at startup
Nicola Mingotti
nmingotti at gmail.com
Wed Jul 28 09:56:35 PDT 2021
I found a fix, just an hack.
My conjecture was that the .st config script was running before GUI
items were actually ready on the World.
So i tried to put a little timeout copying from my old Squeak notes on
fork and Delay ;)
------------ working -----------------
[ |list tbar|
(Delay forMilliseconds: 3000) wait.
Transcript show: 'hello world'.
list _ UISupervisor ui submorphs reject: [ :aMo | aMo is: #TaskbarMorph ].
list do: [ :x | x delete ] .
Preferences veryBigFonts .
tbar _ (UISupervisor ui submorphs select: [ :x | x is: #TaskbarMorph
]) first.
tbar scale: 1.4.
] fork.
-----------------------------------------
Please update the Cuis book ;) that is really important !
bye
n.
On 7/28/21 5:53 PM, Rafael Ignacio Matías Sniechowski wrote:
> Hi Nicola
> Did you check that the VM and the image have permissions to read your
> .st file?
> Cheers
>
> *Ignacio Sniechowski**
> *
>
> *
> *
>
> *
> *
> *
> *
> *
> *
> *
> *
>
> *
> *
> *
> *
> *
> *
> *
>
> **
> **
> *
>
>
>
>
>
> On Wed, Jul 28, 2021 at 12:46 PM Nicola Mingotti via Cuis-dev
> <cuis-dev at lists.cuis.st <mailto:cuis-dev at lists.cuis.st>> wrote:
>
> Hi again,
>
> Now I found this roadblock.
>
> Following the Cuis book chapter 9.5.1 I am trying to set my
> configuration
> via .st file instead of saving an image ... it seems a good idea !
>
> Problem, I've tried in all way to make this work, changing the
> relative or absolute script path,
> still it does not work, e.g. like this:
> ./cogspur/squeak Cuis-Smalltalk-Dev/Cuis5.0-4689.image -s
> /home/p/prog/smalltalk/scripts/my-settings.st <http://my-settings.st>
>
> Bye
> Nicola
>
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st <mailto:Cuis-dev at lists.cuis.st>
> https://lists.cuis.st/mailman/listinfo/cuis-dev
> <https://lists.cuis.st/mailman/listinfo/cuis-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210728/163bd85e/attachment.htm>
More information about the Cuis-dev
mailing list