From 8475bf39bca7e1f09c29e045441f47e1ee03e75e Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Tue, 15 Jun 2021 23:00:22 -0500 Subject: [PATCH] proton: Always check if the prefix config changed. In particular, make sure that we update builtin dlls for the first process that runs. --- proton | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/proton b/proton index 884c1062..cf8a781f 100755 --- a/proton +++ b/proton @@ -531,20 +531,19 @@ class CompatData: builtin_dll_copy, )) - if old_ver == CURRENT_PREFIX_VERSION: - # check whether any prefix config has changed - try: - with open(self.config_info_file, "r") as f: - old_prefix_info = f.read() - except IOError: - old_prefix_info = "" + # check whether any prefix config has changed + try: + with open(self.config_info_file, "r") as f: + old_prefix_info = f.read() + except IOError: + old_prefix_info = "" - if old_prefix_info != prefix_info: - # update builtin dll symlinks or copies - self.update_builtin_libs(builtin_dll_copy) + if old_ver != CURRENT_PREFIX_VERSION or old_prefix_info != prefix_info: + # update builtin dll symlinks or copies + self.update_builtin_libs(builtin_dll_copy) - with open(self.config_info_file, "w") as f: - f.write(prefix_info) + with open(self.config_info_file, "w") as f: + f.write(prefix_info) with open(self.version_file, "w") as f: f.write(CURRENT_PREFIX_VERSION + "\n")