Changes file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Changes file

Louis LaBrunda
Hi Guys,

I have a Squeak program that I run headless on a Raspberry Pi.  The program starts when the
Raspberry boots (Raspbian Jessie Lite).  The image is never saved.  The same image is always
run when the Raspberry boots.  Do I need the changes file?  It seems to grow every time the
program starts.  Can I stop this?  Thanks in advance for any and all insight.

Lou
--
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon


Reply | Threaded
Open this post in threaded view
|

Re: Changes file

timrowledge

> On 29-03-2017, at 9:13 AM, Louis LaBrunda <[hidden email]> wrote:
>
> Hi Guys,
>
> I have a Squeak program that I run headless on a Raspberry Pi.  The program starts when the
> Raspberry boots (Raspbian Jessie Lite).  The image is never saved.  The same image is always
> run when the Raspberry boots.  Do I need the changes file?  It seems to grow every time the
> program starts.  Can I stop this?  Thanks in advance for any and all insight.

If you simply rename your prepared headless image after saving it then when it starts up it will not find the changes file. That *should* be enough; it works for Scratch. The sources file will still be found unless you remove it completely (probably not a good idea on your development machine!) but since we don’t write to it you won’t really notice.


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Starbucks are, of course, run by the Caffeinatti.



Reply | Threaded
Open this post in threaded view
|

Re: Changes file

Bert Freudenberg
On Wed, Mar 29, 2017 at 7:26 PM, tim Rowledge <[hidden email]> wrote:

> On 29-03-2017, at 9:13 AM, Louis LaBrunda <[hidden email]> wrote:
>
> Hi Guys,
>
> I have a Squeak program that I run headless on a Raspberry Pi.  The program starts when the
> Raspberry boots (Raspbian Jessie Lite).  The image is never saved.  The same image is always
> run when the Raspberry boots.  Do I need the changes file?  It seems to grow every time the
> program starts.  Can I stop this?  Thanks in advance for any and all insight.

If you simply rename your prepared headless image after saving it then when it starts up it will not find the changes file. That *should* be enough; it works for Scratch. The sources file will still be found unless you remove it completely (probably not a good idea on your development machine!) but since we don’t write to it you won’t really notice.

This only works if you disable the warnIfNoChangesFile and warnIfNoSourcesFile preferences. Otherwise your headless image will show a warning dialog and wait for the user to dismiss it. 

So just disable these prefs and save the image. Then you don't need sources or changes.

- Bert - 
 



Reply | Threaded
Open this post in threaded view
|

Re: Changes file

timrowledge

> On 29-03-2017, at 10:46 AM, Bert Freudenberg <[hidden email]> wrote:
>

> This only works if you disable the warnIfNoChangesFile and warnIfNoSourcesFile preferences. Otherwise your headless image will show a warning dialog and wait for the user to dismiss it.

D’oh, yes. Scratch doesn’t bother about that because it saves/quite/restarts via its own curious routes.

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Strange OpCodes: MFC: Mangle Following Command



Reply | Threaded
Open this post in threaded view
|

Changes file

Louis LaBrunda
In reply to this post by Bert Freudenberg
Hi Guys,

Exactly what I wanted to know.

Lou


On Wed, 29 Mar 2017 19:46:34 +0200, Bert Freudenberg <[hidden email]> wrote:

>On Wed, Mar 29, 2017 at 7:26 PM, tim Rowledge <[hidden email]> wrote:
>
>>
>> > On 29-03-2017, at 9:13 AM, Louis LaBrunda <[hidden email]>
>> wrote:
>> >
>> > Hi Guys,
>> >
>> > I have a Squeak program that I run headless on a Raspberry Pi.  The
>> program starts when the
>> > Raspberry boots (Raspbian Jessie Lite).  The image is never saved.  The
>> same image is always
>> > run when the Raspberry boots.  Do I need the changes file?  It seems to
>> grow every time the
>> > program starts.  Can I stop this?  Thanks in advance for any and all
>> insight.
>>
>> If you simply rename your prepared headless image after saving it then
>> when it starts up it will not find the changes file. That *should* be
>> enough; it works for Scratch. The sources file will still be found unless
>> you remove it completely (probably not a good idea on your development
>> machine!) but since we don’t write to it you won’t really notice.
>>
>
>This only works if you disable the warnIfNoChangesFile and
>warnIfNoSourcesFile preferences. Otherwise your headless image will show a
>warning dialog and wait for the user to dismiss it.
>
>So just disable these prefs and save the image. Then you don't need sources
>or changes.
>
>- Bert -
--
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon