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

Re: [MiNT] Ctrl+Alt+Q deactivated



Jo Even Skarstein wrote:

> --------------------------------------------------
> From: Helmut Karlowski <helmut.karlowski@ish.de>
> Sent: Monday, September 20, 2010 9:38 AM
> To: <mint@lists.fishpool.fi>
> Cc: <helmut.karlowski@ish.de>
> Subject: Re: [MiNT] Ctrl+Alt+Q deactivated
>
> >> Ahh... I see a weakness here. If $SDMASTER is set but point to a
> >> non-existing program, nothing will happen. I should take the return
> >> value of create_process into consideration, and fall back to the old
> >> shutdown if create_process fails. Will fix this tomorrow.
> >
> > You could also add the special SDMASTER==XaAES to also use the old
> > shutdown.
>
> Hmm... I'm not so sure. Then other programs that evaluates this variable
> won't work properly. I think it's better to fall back to the old shutdown

That's true.

> when SDMASTER isn't set, or when create_process fails.

Only when it's not set, else emit an alert.

Try with ALERT(string); (no guarantee).

> Btw. is there an easy way to display an alert from within XaAES? I think it
> would be useful to display an alert before shutdown or exiting all apps
> (Ctrl+Alt+A) to prevent accidental use of these shortcuts.

I tried to do this for the normal shutdown, but it never worked reliably.

Look for ask_before_shotdown or similar.

-Helmut