fix: winetricks path handling

This commit is contained in:
Sergey Palcheh
2025-11-07 10:50:01 +06:00
parent 0a4844a9f3
commit 0a6994abf3
2 changed files with 7 additions and 3 deletions

View File

@@ -31,6 +31,7 @@ class Var:
LICENSE_AGREEMENT_FILE = os.environ.get("AGREEMENT")
THIRD_PARTY_FILE = os.environ.get("THIRD_PARTY_FILE")
GENERAL = os.environ.get("GENERAL")
WH_WINETRICKS = os.environ.get("WH_WINETRICKS")
class DependencyManager:
"""Класс для управления проверкой и установкой системных зависимостей."""
@@ -3931,7 +3932,7 @@ class WineHelperGUI(QMainWindow):
QMessageBox.critical(self, "Ошибка", f"Каталог префикса не найден:\n{prefix_path}")
return
winetricks_path = "/usr/bin/winetricks"
winetricks_path = Var.WH_WINETRICKS
wine_executable = self._get_wine_executable_for_prefix(prefix_name)
dialog = WinetricksManagerDialog(prefix_path, winetricks_path, self, wine_executable=wine_executable)
dialog.installation_complete.connect(lambda: self.update_prefix_info_display(prefix_name))