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

Juan Vuletich juan at jvuletich.org
Sat Jul 31 05:51:11 PDT 2021

Hi Nicola,

On 7/30/2021 7:18 AM, Nicola Mingotti via Cuis-dev wrote:
> Hi guys,
> A few questions for you ;)
> 1] If I install OSProcesses from the File browser no problem, but if I 
> install it from
> the '.st' script, like below, I get an annoying message asking me to 
> press ok.
> Why that? The message I send via GUI or script it the same AFAICanSay.
> ---------
>  " -] OSProcesses "
>  vmDir _ DirectoryEntry smalltalkImageDirectory .
>  pathStr1 _ vmDir parent pathName, 'OSProcesses/OSProcesses.pck.st'.
>  file1 _  FileSystemEntry withPathName: pathStr1.
>  CodePackageFile installPackage: file1.
> ---------

Just do
Feature require: 'OSProcess'

> 2] Why dos package OSProcesses does not have the standard name 
> Cuis-Smalltalk-OSProcesses ?

Any author can name their code the way they prefer. There's not a 
uniform style.

> 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

> bye
> Nicola


Juan Vuletich

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

More information about the Cuis-dev mailing list