On linux try Steam/Proton default journal location
This commit is contained in:
parent
7c209efb9f
commit
7c54d6dd65
1 changed files with 5 additions and 6 deletions
|
|
@ -226,19 +226,18 @@ namespace Observatory
|
|||
logDirectory = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory);
|
||||
}
|
||||
}
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
||||
{
|
||||
string defaultJournalPath = GetSavedGamesPath() + @"\Frontier Developments\Elite Dangerous";
|
||||
string defaultJournalPath = RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
|
||||
? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
|
||||
+ "/.steam/debian-installation/steamapps/compatdata/359320/pfx/drive_c/users/steamuser/Saved Games/Frontier Developments/Elite Dangerous"
|
||||
: GetSavedGamesPath() + @"\Frontier Developments\Elite Dangerous";
|
||||
|
||||
logDirectory =
|
||||
Directory.Exists(defaultJournalPath)
|
||||
? new DirectoryInfo(defaultJournalPath)
|
||||
: new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory);
|
||||
}
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
||||
{
|
||||
logDirectory = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new NotImplementedException("Current OS Platform Not Supported.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue