Settings: Default console logging to running from TTY

This commit is contained in:
Stenzek
2024-09-09 20:55:15 +10:00
parent fe9d06a194
commit d1770b616f
7 changed files with 26 additions and 17 deletions

View File

@ -1347,6 +1347,11 @@ void System::SetDefaultSettings(SettingsInterface& si)
temp.Save(si, false);
#if !defined(_WIN32) && !defined(__ANDROID__)
// On Linux, default the console to whether standard input is currently available.
si.SetBoolValue("Logging", "LogToConsole", Log::IsConsoleOutputCurrentlyAvailable());
#endif
#ifndef __ANDROID__
si.SetStringValue("MediaCapture", "Backend", MediaCapture::GetBackendName(Settings::DEFAULT_MEDIA_CAPTURE_BACKEND));
si.SetStringValue("MediaCapture", "Container", Settings::DEFAULT_MEDIA_CAPTURE_CONTAINER);