diff --git a/src/export/Export.cpp b/src/export/Export.cpp index 24c03dd90..b8f99f56b 100644 --- a/src/export/Export.cpp +++ b/src/export/Export.cpp @@ -523,7 +523,11 @@ bool Exporter::GetFilename() wxFileName tmpFile; tmpFile.AssignHomeDir(); wxString tmpDirLoc = tmpFile.GetPath(wxPATH_GET_VOLUME); - mFilename.SetPath(gPrefs->Read(wxT("/Export/Path"), tmpDirLoc + "\\Documents")); + mFilename.SetPath(gPrefs->Read(wxT("/Export/Path"), tmpDirLoc + "\\Documents\\Audacity")); + // The path might not exist. + // There is no error if the path could not be created. That's OK. + // The dialog that Audacity offers will allow the user to select a valid directory. + mFilename.Mkdir(0755, wxPATH_MKDIR_FULL); #else mFilename.SetPath(gPrefs->Read(wxT("/Export/Path"), wxT("~/Documents"))); #endif