Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/Proton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEsme Povirk <esme@codeweavers.com>2021-12-23 22:50:40 +0300
committerEsme Povirk <esme@codeweavers.com>2021-12-23 22:50:40 +0300
commit04a851d36232a265c6202875df1843c40da8e265 (patch)
tree61c5edb561d2e9966ce5ab01208329a0ce9631da
parent0ca077da99d3cae9f3e3049070c4c5093353ef84 (diff)
CW-Bug-Id: #19818
-rwxr-xr-xproton6
1 files changed, 6 insertions, 0 deletions
diff --git a/proton b/proton
index 3a040e26..b21a1573 100755
--- a/proton
+++ b/proton
@@ -287,6 +287,7 @@ class Proton:
self.lib64_dir = self.path("files/lib64/")
self.fonts_dir = self.path("files/share/fonts/")
self.wine_fonts_dir = self.path("files/share/wine/fonts/")
+ self.wine_inf = self.path("files/share/wine/wine.inf")
self.version_file = self.path("version")
self.default_pfx_dir = self.path("files/share/default_pfx/")
self.user_settings_file = self.path("user_settings.py")
@@ -541,6 +542,11 @@ class CompatData:
if not os.path.exists(dst_file):
self.pfx_copy(src_file, dst_file)
tracked_files.write(rel_dir + file_ + "\n")
+ # Set .update-timestamp so Wine doesn't try to update the prefix.
+ # This is needed in case the mtime of wine.inf has changed in distribution.
+ with open(os.path.join(self.prefix_dir, '.update-timestamp'), 'w') as update_timestamp:
+ mtime = int(os.stat(g_proton.wine_inf).st_mtime)
+ update_timestamp.write(str(mtime))
def update_builtin_libs(self, dll_copy_patterns):
dll_copy_patterns = dll_copy_patterns.split(',')