From a9cab49a6b685910cec57a669658f09937f25be7 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 20 Jul 2011 14:31:59 +1000 Subject: [PATCH] Set SleepApp folder location to DocumentsLocation, not HomeLocation --- SleepLib/preferences.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/SleepLib/preferences.cpp b/SleepLib/preferences.cpp index fbb9b46d..4527c225 100644 --- a/SleepLib/preferences.cpp +++ b/SleepLib/preferences.cpp @@ -53,22 +53,10 @@ const QString & getUserName() const QString & GetAppRoot() { - static QString HomeAppRoot=QDesktopServices::storageLocation(QDesktopServices::HomeLocation)+"/"+AppRoot; + // Should it go here: QDesktopServices::DataLocation ??? - // wxLogMessage(wxStandardPathsBase::Get().GetUserDataDir()); + static QString HomeAppRoot=QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation)+"/"+AppRoot; - //HomeAppRoot=s+wxFileName::GetPathSeparator(); - -/*#if defined(__WXMSW__) - // This conveniently maps to unix home directory for now in wine.. Change before release if necessary.. - HomeAppRoot=wxGetHomeDir()+"/"+wxT("My Documents")+"/"+AppRoot; -#elif defined(__UNIX__) - HomeAppRoot=wxGetHomeDir()+"/"+AppRoot; -#elif defined(__WXMAC__) - // I have no idea - HomeAppRoot=wxGetHomeDir()+"/"+AppRoot; -#endif - //HomeAppRoot+=wxFileName::GetPathSeparator(); // Trailing separator */ return HomeAppRoot; }