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

Re: [MiNT] Ctrl+Alt+Q deactivated



Am 21.09.2010, 21:42 Uhr, schrieb Jo Even Skarstein <joska@online.no>:

If $SDMASTER is set to point to an executable file, this program is
launched when Ctrl+Alt+Q is pressed. If $SDMASTER isn't defined,
shutdown is done immediately.

What about 'H'?

I'd suggest to combine both like:


    short sdmd = 0;
    case 'H':
      sdmd = HALT_SYSTEM;
    case 'Q':
    {

- insert your stuff here -

      DIAGS(("shutdown by CtlAlt Q"));

if ( xaaes_do_form_alert( 0, C.Aes, 1, ASK_SHUTDOWN_ALERT ) == 2 ) <- that's what doesn't work yet
	      dispatch_shutdown(sdmd, 0);
      return true;
    }


--
Helmut Karlowski