Skip to content
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

minor improvement? on CompatData.setup_prefix() #8213

Open
ng572 opened this issue Nov 3, 2024 · 0 comments
Open

minor improvement? on CompatData.setup_prefix() #8213

ng572 opened this issue Nov 3, 2024 · 0 comments

Comments

@ng572
Copy link

ng572 commented Nov 3, 2024

Proton/proton

Line 796 in 1a73b04

if not file_exists(self.prefix_dir + "/dosdevices/c:", follow_symlinks=False):

encountered error when launching a game on linux,
might have got an extra slash there and /dosdevices didn't exist for me,
what worked for me was just to add another makedirs:

existing code

            if not file_exists(self.prefix_dir + "/dosdevices/c:", follow_symlinks=False):
                os.symlink("../drive_c", self.prefix_dir + "/dosdevices/c:")

            if not file_exists(self.prefix_dir + "/dosdevices/z:", follow_symlinks=False):
                os.symlink("/", self.prefix_dir + "/dosdevices/z:")

new code

            if not file_exists(self.prefix_dir + "dosdevices/c:", follow_symlinks=False):
                makedirs(self.prefix_dir + "dosdevices")
                os.symlink("../drive_c", self.prefix_dir + "dosdevices/c:")

            if not file_exists(self.prefix_dir + "dosdevices/z:", follow_symlinks=False):
                makedirs(self.prefix_dir + "dosdevices")
                os.symlink("/", self.prefix_dir + "dosdevices/z:")

specs:
Linux devuan 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux
launch:
proton-experimental
Town of Salem

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

No branches or pull requests

1 participant