mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Merge 2f44db6700 into 29396c22c9
This commit is contained in:
commit
7ab926c5ad
1 changed files with 6 additions and 0 deletions
|
|
@ -115,6 +115,12 @@ File FileLogger::getSystemLogFileFolder()
|
||||||
{
|
{
|
||||||
#if JUCE_MAC
|
#if JUCE_MAC
|
||||||
return File ("~/Library/Logs");
|
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
|
#else
|
||||||
return File::getSpecialLocation (File::userApplicationDataDirectory);
|
return File::getSpecialLocation (File::userApplicationDataDirectory);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue