Skip to content

Commit

Permalink
Fixed settings & recent files path becomes null in osx, linux
Browse files Browse the repository at this point in the history
  • Loading branch information
EX3exp committed Oct 1, 2024
1 parent 22e24fc commit 88b1c43
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Mirivoice/Mirivoice.Core/Managers/PathManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ public PathManager()
{
Directory.CreateDirectory(RootPath);
}


SettingsPath = Path.Combine(DataPath, "settings.yaml");
RecentFilesPath = Path.Combine(DataPath, "recent_files.yaml");

if (OS.IsMacOS())
{
string userHome = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
Expand All @@ -46,6 +49,7 @@ public PathManager()
}
}
catch { }

}
else if (OS.IsLinux())
{
Expand Down Expand Up @@ -90,8 +94,6 @@ public PathManager()
}
}

SettingsPath = Path.Combine(DataPath, "settings.yaml");
RecentFilesPath = Path.Combine(DataPath, "recent_files.yaml");
}
}

Expand Down

0 comments on commit 88b1c43

Please sign in to comment.