summaryrefslogtreecommitdiff
path: root/py_modules/lsfg_vk/plugin.py
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-11 11:47:16 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-11 11:47:16 -0400
commitc7ca9c7ec2660d279f5e6957ef882390a8783667 (patch)
tree4abdc4faf4ab0c7c2e36681fc6c1ba7271305cc2 /py_modules/lsfg_vk/plugin.py
parent4b7852b153106a487ad8fac654ea59f00aa8a8e4 (diff)
downloaddecky-lsfg-vk-c7ca9c7ec2660d279f5e6957ef882390a8783667.tar.gz
decky-lsfg-vk-c7ca9c7ec2660d279f5e6957ef882390a8783667.zip
handle decky uninstall to avoid unlaunchable game wrappers
Diffstat (limited to 'py_modules/lsfg_vk/plugin.py')
-rw-r--r--py_modules/lsfg_vk/plugin.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/py_modules/lsfg_vk/plugin.py b/py_modules/lsfg_vk/plugin.py
index 918c3f8..a1fd40f 100644
--- a/py_modules/lsfg_vk/plugin.py
+++ b/py_modules/lsfg_vk/plugin.py
@@ -34,14 +34,14 @@ class Plugin:
async def check_lsfg_vk_installed(self):
return self.installation_service.check_installation()
- def _cleanup_runtime_state(self):
+ def _cleanup_runtime_state(self, preserve_wrapper: bool = False):
flatpak = self.flatpak_service.remove_plugin_owned_environment()
if not flatpak.get("success"):
return flatpak.get("error") or "Could not clean up Flatpak support"
profiles = self.configuration_service.reset_all_flatpak_configs()
if not profiles.get("success"):
return profiles.get("error") or "Could not remove Flatpak profiles"
- wrapper = self.wrapper_service.purge()
+ wrapper = self.wrapper_service.neutralize() if preserve_wrapper else self.wrapper_service.purge()
if not wrapper.get("success"):
return wrapper.get("error") or "Could not remove workaround state"
return None
@@ -190,7 +190,7 @@ class Plugin:
async def _uninstall(self):
decky.logger.info("decky-lsfg-vk plugin being uninstalled")
try:
- error = self._cleanup_runtime_state()
+ error = self._cleanup_runtime_state(preserve_wrapper=True)
if error:
decky.logger.warning(f"Preserving lsfg-vk files because uninstall cleanup failed: {error}")
return