KSP-ModularManagement / KSPe

Extensions and utilities for Kerbal Space Program
http://ksp.lisias.net/add-ons/KSPAPIExtensions
Other
11 stars 6 forks source link

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

Closed Lisias closed 2 years ago

Lisias commented 2 years ago

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 commented 2 years ago

TweakScale Support ticket https://github.com/net-lisias-ksp/TweakScale/issues/209 is indirectly related to this one.

Lisias commented 2 years ago

Another user was hit by this problem on Forum.

KSP.log.zip

Lisias commented 2 years ago

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