[Cuis-dev] A few question about automatic installation of packages at boot (ie. OSProcesses)
Nicola Mingotti
nmingotti at gmail.com
Sat Aug 7 08:07:05 PDT 2021
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
On Sun, Aug 1, 2021 at 1:58 AM Juan Vuletich <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 Vuletichwww.cuis-smalltalk.orghttps://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Devhttps://github.com/jvuletichhttps://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/c4d290cb/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4739-CuisCore-NicolaMingotti-2021Aug07-16h37m-NM.001.cs.st
Type: application/octet-stream
Size: 1406 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210807/c4d290cb/attachment-0001.obj>
More information about the Cuis-dev
mailing list