summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Heaney <42350981+wheaney@users.noreply.github.com>2024-07-24 15:01:55 -0700
committerGitHub <noreply@github.com>2024-07-24 15:01:55 -0700
commitd69496d4adc30597bef8fdec377fd280ac9f1a00 (patch)
tree4c11839c7450949731e2c2c5e9020843183b38e5
parenta85c79735f2ff204325b5e930dad1369439d2db1 (diff)
downloaddecky-bazzite-buddy-d69496d4adc30597bef8fdec377fd280ac9f1a00.tar.gz
decky-bazzite-buddy-d69496d4adc30597bef8fdec377fd280ac9f1a00.zip
Add _uninstall function to the python Plugin template (#34)
-rw-r--r--main.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.py b/main.py
index 882cb30..07842f0 100644
--- a/main.py
+++ b/main.py
@@ -15,8 +15,15 @@ class Plugin:
async def _main(self):
decky_plugin.logger.info("Hello World!")
- # Function called first during the unload process, utilize this to handle your plugin being removed
+ # Function called first during the unload process, utilize this to handle your plugin being stopped, but not
+ # completely removed
async def _unload(self):
+ decky_plugin.logger.info("Goodnight World!")
+ pass
+
+ # Function called after `_unload` during uninstall, utilize this to clean up processes and other remnants of your
+ # plugin that may remain on the system
+ async def _uninstall(self):
decky_plugin.logger.info("Goodbye World!")
pass