#102 user.callbacks.shutdown script not called

open
nobody
None
5
2009-03-31
2009-03-31
Heath
No

Testing with Frontier 10.1a11 with fully updated root on Mac OS X 10.4 (PPC).
Scripts in user.callbacks.shutdown are not called.
Easily verified by creating a test script of any type. If I manually run the script at system.shutdown.shutdownscript my test script is called. If I then quit Frontier there is no evidence my shutdown script is ever run.

Discussion

  • Heath
    Heath
    2009-04-04

    I've discovered that whether or not the shutdown callbacks are called depends on whether the frontmost window is a @root window or a guest database. If a guest database is frontmost when Frontier is quit, the shutdown callbacks are not called.

     
  • Heath
    Heath
    2009-04-06

    Disregard my previous comment. It's much more complicated than that. As far as I can tell, shutdown callbacks are called when: 1) a window from @root is frontmost & 2) filemenu.quit is called by a script.

    Using Command-Q quit never runs shutdown callbacks. Could this have something to do with the fact that under Mac OS X the quit command is not in the "File" menu but under the "Frontier" menu?

    Am I only talking to myself?