[Cuis-dev] I have some issues running the conf. script file at startup

Gerald Klix cuis.01 at klix.ch
Wed Jul 28 12:50:25 PDT 2021


Juan,

shouldn't there be a command-line option that runs a script
when the UI is ready?
Or even better add an option (-w)
that waits for the UI being ready and then runs
the initialization stuff (-r -d -s -l).


Just my 0.02€,

Gerald



On 7/28/21 6:56 PM, Nicola Mingotti via Cuis-dev wrote:
> 
> 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>
>>
> 
> 
> 


More information about the Cuis-dev mailing list