[Newbies] Safe shut down
bert at freudenbergs.de
Thu Jan 20 12:03:03 UTC 2011
On 20.01.2011, at 09:41, Gary Dunn wrote:
> All we really need is to clean up a session during shutdown. The simple way is to trap SIGTERM and do the right thing: at the minimum do a save. If possible, prompt user to save yes/no. XSMP and D-BUS do more than Unix signals, such as the option to restart automatically. That sort of thing might be useful, but let's learn to walk first.
> Comments welcome.
Since implementing this is hardly a beginner's topic, let's move the discussion to squeak-dev. Reply-To set.
Catching SIGTERM should be reasonably simple using OSProcess.
There also are D-Bus bindings for Squeak that could be used.
Both options are IMHO inferior to having XSMP support in the VM, which should work across pretty much all X11 desktops. But they appear to be easier to implement.
- Bert -
>> On Jan 19, 2011 9:24 PM, "David Corking" <lists at dcorking.com> wrote:
>> On Sat, Jan 15, 2011 at 5:05 AM, Gary Dunn wrote :
>> > Interesting, I found this in a discussion on XSMP:
>> > Newer alternative sessions (GDM Greeter, O...
>> Sounds great. This bug (linked from the above GNOME wiki page) looks
>> particularly relevant:
>> Hope that helps, David
>>  http://lists.squeakfoundation.org/pipermail/beginners/2011-January/007497.html
>> Beginners mailing list
>> Beginners at lists.squeakfoundat...
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
More information about the Beginners