Skip to content

Commit

Permalink
Fix the Linux settings location (#73)
Browse files Browse the repository at this point in the history
juce::PropertiesFile::Options::getDefaultFile makes a bad choice
on linux of just dumping into home dir, so if JUCE_LINUX is true
set the properties file directory to ".config/AirwindowsConsolidated"
which works.

Closes #72
  • Loading branch information
baconpaul authored May 6, 2024
1 parent 303dcd8 commit 8f9eaad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src-juce/AWConsolidatedEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,12 @@ AWConsolidatedAudioProcessorEditor::AWConsolidatedAudioProcessorEditor(

juce::PropertiesFile::Options options;
options.applicationName = "AirwindowsConsolidated";
#if JUCE_LINUX
options.folderName = ".config/AirwindowsConsolidated";
#else
options.folderName = "AirwindowsConsolidated";
#endif

options.filenameSuffix = "settings";
options.osxLibrarySubFolder = "Preferences";
properties = std::make_unique<juce::PropertiesFile>(options);
Expand Down

0 comments on commit 8f9eaad

Please sign in to comment.