fix: Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) returns an empty string on some linux distro

* fallback the storage folder to `~/.sourcegit`
This commit is contained in:
leo 2024-08-12 21:29:18 +08:00
parent 9561f7ef64
commit 38665a61cb
No known key found for this signature in database
3 changed files with 20 additions and 9 deletions

View file

@ -44,6 +44,8 @@ namespace SourceGit
[STAThread]
public static void Main(string[] args)
{
Native.OS.SetupDataDir();
AppDomain.CurrentDomain.UnhandledException += (_, e) =>
{
LogException(e.ExceptionObject as Exception);