Static constructor of PlatformFolders crashes
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Release Type: GitHub
Version: master
Platform(s): Windows
Describe the bug
Xenko.Core.PlatformFolders tries to create directories in the directory of the executable. If the exectutable is in a protected directory like %ProgramFiles% its static constructor crashes and it's not possible to load Stride at all.
To Reproduce
Try to load Stride from an application installed in a protected directory like %ProgramFiles%
Expected behavior
A way to tell Stride where it should setup its needed folder structure. If that is too hard to do it should at least not crash so the host application can find its own workaround.
Are there any ideas already how this should be approached?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Xenko.Core.PlatformFolders static constructor and reproduce the failure when Stride is loaded from a protected Windows directory such as %ProgramFiles%. Trace how its required folder location is selected, then verify that the host can provide an alternative location or that loading no longer crashes when directory creation is denied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100