From mint-bounce@lists.fishpool.fi  Wed Sep 22 08:36:43 2010
Message-ID: <429009.601098613-sendEmail@descaro>
From: "Helmut Karlowski" <helmut.karlowski@ish.de>
To: "mint@lists.fishpool.fi" <mint@lists.fishpool.fi>
Cc: "helmut.karlowski@ish.de" <helmut.karlowski@ish.de>
Subject: Re: [MiNT] Ctrl+Alt+Q deactivated
Date: Wed, 22 Sep 2010 12:33:13 +0000
X-Mailer: sendEmail-1.55
MIME-Version: 1.0
Content-Type: multipart/related; boundary="----MIME delimiter for sendEmail-19738.9678369326"
X-Antivirus: avast! (VPS 100922-0, 22.09.2010), Outbound message
X-Antivirus-Status: Clean
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: helmut.karlowski@ish.de
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>

This is a multi-part message in MIME format. To properly display this message you need a MIME-Version 1.0 compliant Email program.

------MIME delimiter for sendEmail-19738.9678369326
Content-Type: text/plain;
  charset="iso-8859-1"
  Content-Transfer-Encoding: quoted-printable

Jo Even Skarstein wrote:

> From: Helmut Karlowski <helmut.karlowski@ish.de>
> Sent: Tuesday, September 21, 2010 9:57 AM
> To: <mint@lists.fishpool.fi>
> Cc: <helmut.karlowski@ish.de>
> Subject: Re: [MiNT] Ctrl+Alt+Q deactivated
>
> >> That works fine. Shutdown now works as we discussed, but I'm still
> >> looking
> >> into how to display an ordinary alert from within XaAES.
> >
> > Out of curiosity I tried my version yesterday - the alert is displayed,
> > but the
> > return-value (intout[0]) is not 0 or 1 but 8 or 9, so it would work when
> > subsctracting 7. Also I gave the AESPB-members memory.
> >
> > But C.Aes does not terminate ..
> >
> > Maybe this would work from k_keybd.
>
> I thought about this this morning. Perhaps the best solution is as follows:
>
> * Don't respond to Ctrl+Alt+H.
> * When Ctrl+Alt+Q is pressed, run the program pointed to by $SDMASTER. If
> $SDMASTER isn't set, don't do anything. If $SDMASTER is set but
> create_process() fails, emit an alert.
>
> If we do it like this, there is no need for a warning/alert as this will be
> handled by the shutdown-program. If $SDMASTER isn't set, the user can shut
> down or exit XaAES from the task manager as today.
>
> What do you think?

Yes - this would be a valid solution. But I was a little bored today and
implemented alerts for any shutdown-variant. It works good. From
taskmanager it's optional at compile-time.

Now it would be possible to ask when SDMASTER is not set or not found.

And it's not bad to have some possibility to interact from XaAES generally.

I suggest I commit the stuff 'till weekend, and you do your patch again ;)

-Helmut



------MIME delimiter for sendEmail-19738.9678369326--


