From a1a29616e56475d75fce75134c574be3b547950f Mon Sep 17 00:00:00 2001 From: Wayne Heaney <42350981+wheaney@users.noreply.github.com> Date: Wed, 13 Mar 2024 15:59:22 -0700 Subject: Add Plugin.uninstall callback support (#555) * Add Plugin.uninstall callback support https://github.com/SteamDeckHomebrew/decky-loader/issues/536 * Remove empty deck.sh --- backend/decky_loader/plugin/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/decky_loader/plugin/plugin.py') diff --git a/backend/decky_loader/plugin/plugin.py b/backend/decky_loader/plugin/plugin.py index 02d80470..6fa86858 100644 --- a/backend/decky_loader/plugin/plugin.py +++ b/backend/decky_loader/plugin/plugin.py @@ -97,9 +97,9 @@ class PluginWrapper: self._listener_task = create_task(self._response_listener()) return self - def stop(self): + def stop(self, uninstall: bool = False): self._listener_task.cancel() async def _(self: PluginWrapper): - await self._socket.write_single_line(dumps({ "stop": True }, ensure_ascii=False)) + await self._socket.write_single_line(dumps({ "stop": True, "uninstall": uninstall }, ensure_ascii=False)) await self._socket.close_socket_connection() create_task(_(self)) \ No newline at end of file -- cgit v1.2.3