Skip to content

Commit b6a752c

Browse files
Merge pull request #141 from R1kaB3rN/dosdevices-fix
fix: ensure dosdevices subdir exists in prefix
2 parents f12a64e + f70d1df commit b6a752c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

proton

+2
Original file line numberDiff line numberDiff line change
@@ -967,9 +967,11 @@ class CompatData:
967967
self.migrate_user_paths()
968968

969969
if not file_exists(self.prefix_dir + "/dosdevices/c:", follow_symlinks=False):
970+
os.makedirs(f"{self.prefix_dir}/dosdevices", exist_ok=True)
970971
os.symlink("../drive_c", self.prefix_dir + "/dosdevices/c:")
971972

972973
if not file_exists(self.prefix_dir + "/dosdevices/z:", follow_symlinks=False):
974+
os.makedirs(f"{self.prefix_dir}/dosdevices", exist_ok=True)
973975
os.symlink("/", self.prefix_dir + "/dosdevices/z:")
974976

975977
# collect configuration info

0 commit comments

Comments
 (0)