Skip to content

fix: ensure dosdevices subdir exists in prefix #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2025

Conversation

R1kaB3rN
Copy link

@R1kaB3rN R1kaB3rN commented Apr 4, 2025

The proton script can raise a FileNotFoundError in its prefix upgrade due to the dosdevices subdirectory not existing. Discovered this bug when looking into a broken game with GE-Proton9-27 as the compatibility tool on Steam.

Traceback:

 Proton: Upgrading prefix from None to GE-Proton9-27 (/home/deck/.local/share/Steam/steamapps/compatdata/2697560/)
 Traceback (most recent call last):
   File "/home/deck/.local/share/Steam/compatibilitytools.d/GE-Proton9-27/proton", line 1924, in <module>
     g_session.init_session(sys.argv[1] != "runinprefix")
   File "/home/deck/.local/share/Steam/compatibilitytools.d/GE-Proton9-27/proton", line 1816, in init_session
     g_compatdata.setup_prefix()
   File "/home/deck/.local/share/Steam/compatibilitytools.d/GE-Proton9-27/proton", line 970, in setup_prefix
     os.symlink("../drive_c", self.prefix_dir + "/dosdevices/c:")
 FileNotFoundError: [Errno 2] No such file or directory: '../drive_c' -> '/home/deck/.local/share/Steam/steamapps/compatdata/2697560/pfx//dosdevices/c:'

Link to upstream report: ValveSoftware#8213

@GloriousEggroll GloriousEggroll merged commit b6a752c into GloriousEggroll:master Apr 18, 2025
@R1kaB3rN R1kaB3rN deleted the dosdevices-fix branch April 18, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants