diff --git a/proton b/proton index b6bb6a79e..e8b36f896 100755 --- a/proton +++ b/proton @@ -1461,6 +1461,12 @@ class Session: if "PROTON_CRASH_REPORT_DIR" in self.env: self.env["WINE_CRASH_REPORT_DIR"] = self.env["PROTON_CRASH_REPORT_DIR"] + # NVIDIA software may check NVIDIA_WINE_DLL_DIR as a search-path for + # driver-provided DLLs for use by Proton/Wine. + nvidia_wine_dll_dir = find_nvidia_wine_dll_dir() + if nvidia_wine_dll_dir: + self.env["NVIDIA_WINE_DLL_DIR"] = nvidia_wine_dll_dir + if "PROTON_LOG" in self.env and nonzero(self.env["PROTON_LOG"]): if self.setup_logging(append_forever=False): self.log_file.write("======================\n")