mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-04-05 17:39:39 -04:00
On linux try Steam/Proton default journal location
This commit is contained in:
parent
7c209efb9f
commit
7c54d6dd65
@ -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…
x
Reference in New Issue
Block a user