From c82fc2f560e4247fcb36dfdee81c0fb05d1fd600 Mon Sep 17 00:00:00 2001 From: Daniel Johnson Date: Thu, 14 Nov 2024 16:50:20 -0500 Subject: [PATCH] Do not update 'ge-proton' when the wine runner is not installed; users who don't wine don't proton, and it's just a waste of bandwidth to download proton for them. --- lutris/runtime.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lutris/runtime.py b/lutris/runtime.py index 18bb3aa71..f518b48d7 100644 --- a/lutris/runtime.py +++ b/lutris/runtime.py @@ -448,6 +448,11 @@ class ProtonComponentUpdater(RuntimeExtractedComponentUpdater): super().__init__(remote_runtime_info) self.proton_dir = os.path.join(settings.RUNNER_DIR, "proton") + @property + def should_update(self) -> bool: + wine_dir = os.path.join(settings.RUNNER_DIR, "wine") + return os.path.isdir(wine_dir) and super().should_update + @property def local_runtime_path(self) -> str: """Return the local path for the runtime folder"""