This refers to https://www.klayout.de/forum/discussion/1208
I could not find a way to register an exit handler.
1.) MainWindow.destroyed should be a signal available for this purpose. But it's hidden by the "destroyed" attribute. TODO: remove this attribute ("_destroyed" is the recommended version of the attribute).
2.) Using Ruby's at_exit segfaults (both with 0.25.x and master branch).
A working solution is to use Application#aboutToQuit
This refers to https://www.klayout.de/forum/discussion/1208
I could not find a way to register an exit handler.
1.) MainWindow.destroyed should be a signal available for this purpose. But it's hidden by the "destroyed" attribute. TODO: remove this attribute ("_destroyed" is the recommended version of the attribute).
2.) Using Ruby's at_exit segfaults (both with 0.25.x and master branch).
A working solution is to use Application#aboutToQuit