Author Topic: Error log.txt denied  (Read 342 times)

Ben Buse

  • Professor
  • ****
  • Posts: 499
Error log.txt denied
« on: August 17, 2023, 06:43:02 AM »
I opened badger film v1.2.23, and loaded example 'MAC O Ka in UO2 uncorrected data.txt and clicked calculate and got the error 'Access to the path 'C:|windows\system32\log.txt' is denied'

Strangely the error happens when load through start menu searching for badgerfilm.  But if I go to the folder and click on it, it works
« Last Edit: August 17, 2023, 08:25:26 AM by John Donovan »

Aurelien Moy

  • Administrator
  • Graduate
  • *****
  • Posts: 9
Re: Error log.txt denied
« Reply #1 on: August 17, 2023, 02:05:59 PM »
BadgerFilm creates the file 'log.txt' in the same folder where it was launched from.
However, when using the start menu to run BadgerFilm, Windows mistakenly believes that the program was started from the "C:\\windows\system32" folder. Consequently, BadgerFilm attempts to create the 'log.txt' file in this directory, but lacks the necessary privileges, leading to an error message.
I will modify the program so that the log.txt file is created in a designated location (most likely the AppData folder) that can be accessed with regular user privileges.

Thank you for reporting this bug!