AIRLegend / aitrack

6DoF Head tracking software
MIT License
1.07k stars 107 forks source link

If AITrack is installed in location that forbids write-access, it silently crashes at launch #95

Open philstopford opened 3 years ago

philstopford commented 3 years ago

Describe the bug AITrack silently crashes if the user running it has no write access to the program location (e.g. they placed the AITrack folder inside Program Files or similar). The program writes to its location rather than %appdata%, so the folder permissions become an issue.

To Reproduce Steps to reproduce the behavior:

  1. Place the AITrack folder inside "C:\Program FIles"
  2. Run AITrack as a normal user.
  3. Program will silently fail to launch; Event Viewer will show a crash occurred
  4. Run AITrack as an elevated user from the same location, it will run.
  5. Move AITrack folder to a non-restricted location.
  6. Run AITrack as a normal user. It will run.

Expected behavior Ideally, the program should run and write to a user-specific location (e.g. under %appdata%). Alternatively, an error message should be shown to ask the user to relocate the program to a writeable location.

Environment (please complete the following information):

Additional context Add any other context about the problem here.