[Cuis-dev] A few question about automatic installation of packages at boot (ie. OSProcesses)

Juan Vuletich juan at jvuletich.org
Sat Aug 7 13:16:44 PDT 2021


On 8/7/2021 12:07 PM, Nicola Mingotti via Cuis-dev wrote:
> I finally have the fileout for this chagne as well !
>
> ----------------------------- Example -------------------------------
>
> Preferences askForSaveOnQuit . " true "
>
> " try to quit, World->Quit you see the menu asking to save"
>
>
> Preferences disable: #askForSaveOnQuit.
>
> Preferences askForSaveOnQuit . " false "
>
>
> " try to quit now. World->Quit, ATTENTION, it just quits! "
>
> -------------------------------------------
>
>
> Attention, when booting next time Cuis might ask if your system crashed,
>
> and if you want try to recover. Say no.
>
> I bypass this deleting all *.changes files, then
>
> recovering the original .changes file and finally run Cuis.
>
>
> bye
>
> Nicola
>
>

Cool, thanks. The reason there is a different behavior now is because of 
calling the primitive directly. See the change I just posted to GitHub, 
that avoids asking the user, but calls the same exit sequence as before.

Thanks,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich


> On Sun, Aug 1, 2021 at 1:58 AM Juan Vuletich <juan at jvuletich.org 
> <mailto:juan at jvuletich.org>> wrote:
>
>     Hi Nicola,
>
>     On 7/31/2021 12:24 PM, Nicola Mingotti via Cuis-dev wrote:
>>
>>     Hi Juan,
>>
>>
>>>>     3] Since I am automatizing the system via script I would prefer
>>>>     that when
>>>>     I select World -> Quit the system stop asking me if I want to
>>>>     save the image,
>>>>     by default I don't want. Is there a variable the say that ? Or
>>>>     do I need to make
>>>>     a change, file it out and file it in in the '.st' file ?
>>>>
>>>
>>>     If you are doing it via code, just call
>>>     #snapshot:andQuit:clearAllClassState: yourself. If you want a
>>>     new / different menu option, just add it. See senders of
>>>     #quitSession
>>>
>>>     -- 
>>>     Juan Vuletich
>>
>>     Ok for the code, I can for sure add a entry menu, It should not
>>     be difficult.
>>
>>     But i have a suggestion. Since the CuisBook recommends, as good
>>     practice, not to save the image
>>     I would say it would be nice for the system to have a global
>>     variable like
>>     "#saveImageOnQuit" set to true by default.
>>
>>     Then, when i user is experienced enough to have all the Git
>>     things set up he can just
>>     toggle the value of the variable via script at image boot and
>>     have the system behave as recommended
>>     by the book. Reference to that variable should be in the book in
>>     paragraph 9.5.1.
>>
>>     I can try to implement this myself if you guys think is a nice
>>     feature to have.
>>
>>     bye
>>     Nicola
>
>     Yes, that makes sense. Please go ahead. Make it selectable by
>     something like
>
>     Preferences enable: #askForSaveOnQuit
>     Preferences disable: #askForSaveOnQuit
>
>     default to true.
>
>     Thanks!
>
>     -- 
>     Juan Vuletich
>     www.cuis-smalltalk.org  <http://www.cuis-smalltalk.org>
>     https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
>     https://github.com/jvuletich
>     https://www.linkedin.com/in/juan-vuletich-75611b3
>     @JuanVuletich
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210807/b2e2de9f/attachment.htm>


More information about the Cuis-dev mailing list