From 851d807d7460c4b095cf202d5fafabebf609f5b5 Mon Sep 17 00:00:00 2001 From: Maykin-99 <73132218+Maykin-99@users.noreply.github.com> Date: Wed, 26 May 2021 11:13:58 +0000 Subject: [PATCH] Create a wine prefix per user Fixes #4820 by setting the base directory of `CompatData` from `steamapps/compatdata//` to `steamapps/compatdata///` (I'm honestly surprised that it worked without a hitch). The only issue is that the old files still exist. Ideally we would move them to the new path. I assume that would belong in `upgrade_pfx`? Or is it even necessary? --- proton | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proton b/proton index 5246f7e85..99eb71788 100755 --- a/proton +++ b/proton @@ -204,7 +204,8 @@ class Proton: class CompatData: def __init__(self, compatdata): - self.base_dir = compatdata + "/" + self.base_dir = compatdata + "/" + str(os.getuid()) + "/" + os.makedirs(self.base_dir, exist_ok=True) self.prefix_dir = self.path("pfx/") self.version_file = self.path("version") self.config_info_file = self.path("config_info")