Closed SiMet closed 3 weeks ago
@SiMet,
Thank you for the report.
You may want to consider upgrading to .NET 8, as at that time they updated the folder that Environment.SpecialFolder.ApplicationData
points to (see docs here), which should be more reliable.
That being said, I have:
JSONConfiguration
cannot be found, tries two other locations in hopes that one is usable.JSONConfiguration
fails to be created, creates a DefaultConfiguration
object, which basically does nothing special.
We faced application crash on MacOS when user does not have access to .config directory. There is an exception
System.UnauthorizedAccessException
Access to the path '/Users/silentum/.config/MyCoolApp/MyCoolApp/NetSparkleUpdater' is denied.
To reproduce this issue I removed .config and then created it as root with chmod 0707.
In our code we do
StartLoop(true, true, TimeSpan.FromMinutes(30))
onSparkleUpdater
objectWe susspect that this is because
async void OnWorkerDoWork
is throwing exception and we are unable to catch it. (change toasync Task
could solve this issue). There is also no catch forSystem.IO
exception inJSONConfiguration.GetSavePath
when creating directory which could prevent this crash.Crash call stack: