1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00
This commit is contained in:
omartijn 2026-01-08 16:12:17 +00:00 committed by GitHub
commit 7ab926c5ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -115,6 +115,12 @@ File FileLogger::getSystemLogFileFolder()
{
#if JUCE_MAC
return File ("~/Library/Logs");
#elif JUCE_LINUX
const char* state = getenv("XDG_STATE_HOME");
if (state != nullptr)
return File (state);
else
return File ("~/.local/state");
#else
return File::getSpecialLocation (File::userApplicationDataDirectory);
#endif