From mint-bounce@lists.fishpool.fi  Thu Sep 23 06:41:33 2010
Message-ID: <460479.826756881-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: Thu, 23 Sep 2010 10:38:38 +0000
X-Mailer: sendEmail-1.55
MIME-Version: 1.0
Content-Type: multipart/related; boundary="----MIME delimiter for sendEmail-492096.128714369"
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-492096.128714369
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: Thursday, September 23, 2010 11:21 AM
> To: <mint@lists.fishpool.fi>
> Cc: <helmut.karlowski@ish.de>
> Subject: Re: [MiNT] Ctrl+Alt+Q deactivated
>
>
> >> I haven't checked the sources, but I'm quite sure it issues a shutdown
> >> using
> >> shel_write(). So yes, it asks XaAES to perform a shutdown.
> >
> > So the shutdown should be performed without alert when issued from an
> > extern app.
>
> The alert should *only* be displayed when shutdown is initiated by
> Ctrl+Alt+Q/H. Isn't the purpose of this alert to avoid accidental shutdown?

I guess I've found it.

Try this in taskman.c

void
quit_all_apps(enum locks lock, struct xa_client *except, short reason)
{
  struct xa_client *client;
  bool do_alert = true;

  //BLOG((0,"quit_all_apps:except=%lx", except));
  if( except )
  {
    do_alert = false;
    except = 0;
  }

  //BLOG((0,"quit_all_apps:reason=%d,do_alert=%d", reason, do_alert));
  if ( do_alert == true && xaaes_do_form_alert( lock, C.Hlp, 1, ASK_QUITALL_ALERT ) != 2 )
  {

..

-Helmut



------MIME delimiter for sendEmail-492096.128714369--


