[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Ctrl+Alt+Q deactivated



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?

Jo Even