From d1b236b090d7b0c12ced23e3b048f8ab4edec413 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 13 Aug 2024 10:19:16 +0800 Subject: [PATCH] enhance: usually we create hidden sub-directories in $HOME with lowercase names --- README.md | 2 +- src/Native/OS.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d9ce8f03..54765165 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ This software creates a folder `$"{System.Environment.SpecialFolder.ApplicationD | OS | PATH | |---------|-----------------------------------------------------| | Windows | `C:\Users\USER_NAME\AppData\Roaming\SourceGit` | -| Linux | `${HOME}/.config/SourceGit` or `${HOME}/.Sourcegit` | +| Linux | `${HOME}/.config/SourceGit` or `${HOME}/.sourcegit` | | macOS | `${HOME}/Library/Application Support/SourceGit` | For **Windows** users: diff --git a/src/Native/OS.cs b/src/Native/OS.cs index ea2b14e6..0e1b8522 100644 --- a/src/Native/OS.cs +++ b/src/Native/OS.cs @@ -77,7 +77,7 @@ namespace SourceGit.Native { var osAppDataDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); if (string.IsNullOrEmpty(osAppDataDir)) - DataDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".SourceGit"); + DataDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".sourcegit"); else DataDir = Path.Combine(osAppDataDir, "SourceGit");