mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
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:
parent
9561f7ef64
commit
38665a61cb
3 changed files with 20 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue