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

Workaround for UnauthorizedAccessException in System.IO.Directory.GetDirectories #21

Closed
Lisias opened this issue Dec 8, 2021 · 3 comments
Assignees
Labels
bug Something isn't working not-my-fault I'm innocent on this! :)

Comments

@Lisias
Copy link
Collaborator

Lisias commented Dec 8, 2021

As it's happening here, on support: https://github.com/net-lisias-ksp/KSPAPIExtensions/issues/12#issuecomment-988232621

Steam, by some reason beyound reason, decided it's a good idea to shove symbolic links to restricted directories inside user's $HOME. Go figure out, I could not.

While I strongly believe GetDirectories should do the job itself besides this, a workaround is simple enough:

Do it ASAP, and propagate this fix on DOE, TweakScale, KSP Recall and KAX.

@Lisias
Copy link
Collaborator Author

Lisias commented Dec 10, 2021

TweakScale Support ticket TweakScale/TweakScale#209 is indirectly related to this one.

@Lisias
Copy link
Collaborator Author

Lisias commented Apr 11, 2022

Another user was hit by this problem on Forum.

KSP.log.zip

@Lisias
Copy link
Collaborator Author

Lisias commented Apr 11, 2022

Perhaps a Quick&Dirty hack about the problem would be to avoid somehow running on /home/<USERNAME>/.local/share/Steam/steamapps/common/ ?

@Lisias Lisias added bug Something isn't working not-my-fault I'm innocent on this! :) labels Apr 11, 2022
@Lisias Lisias closed this as completed in 787ef2f May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working not-my-fault I'm innocent on this! :)
Projects
None yet
Development

No branches or pull requests

1 participant