mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
enhance: usually we create hidden sub-directories in $HOME with lowercase names
This commit is contained in:
parent
19cb5678a7
commit
d1b236b090
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ This software creates a folder `$"{System.Environment.SpecialFolder.ApplicationD
|
||||||
| OS | PATH |
|
| OS | PATH |
|
||||||
|---------|-----------------------------------------------------|
|
|---------|-----------------------------------------------------|
|
||||||
| Windows | `C:\Users\USER_NAME\AppData\Roaming\SourceGit` |
|
| 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` |
|
| macOS | `${HOME}/Library/Application Support/SourceGit` |
|
||||||
|
|
||||||
For **Windows** users:
|
For **Windows** users:
|
||||||
|
|
|
@ -77,7 +77,7 @@ namespace SourceGit.Native
|
||||||
{
|
{
|
||||||
var osAppDataDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
|
var osAppDataDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
|
||||||
if (string.IsNullOrEmpty(osAppDataDir))
|
if (string.IsNullOrEmpty(osAppDataDir))
|
||||||
DataDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".SourceGit");
|
DataDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".sourcegit");
|
||||||
else
|
else
|
||||||
DataDir = Path.Combine(osAppDataDir, "SourceGit");
|
DataDir = Path.Combine(osAppDataDir, "SourceGit");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue