Skip to content

Commit

Permalink
Create a wine prefix per user
Browse files Browse the repository at this point in the history
Fixes ValveSoftware#4820 by setting the base directory of `CompatData` from `steamapps/compatdata/<steamid>/` to `steamapps/compatdata/<steamid>/<userid>/`  (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?
  • Loading branch information
Maykin-99 authored May 26, 2021
1 parent bb11c51 commit 851d807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proton
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 851d807

Please sign in to comment.