UBA Shutdown Plugins - eliranwong/UniqueBible GitHub Wiki

UBA Shutdown Plugins

UBA shutdown plugins are plugins executed just before UBA is completely closed.

Read https://github.com/eliranwong/UniqueBible/wiki/UBA-Plugins for other types of UBA plugins.

Automate Feature(s) before Shutdown

You may automate a feature on exit with an UBA shutdown plugin.

You may also ask UBA to run a batch of commands on exit with an UBA shutdown plugin.

For example, you may simply write two lines to say "bye bye" each time UBA shuts down.

import config

config.mainWindow.runTextCommand("SPEAK:::Bye bye!")

Automate a Menu Plugin on Exit

You can automate a menu plugin on exit, for example:

https://github.com/eliranwong/UniqueBible/wiki/Notes-Backup-with-Google-Drive#automate-backup-on-shutdown

Change Configurations before UBA is closed

UBA shutdown plugins are executed before all available configurations are saved on file "config.py" before exit.

Therefore, it is possible to use a shutdown plugin to change config values in the last minute.