summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index bdf67b9..533d7bd 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -809,5 +809,9 @@ QString QPEApplication::qpeDir()
QString QPEApplication::documentDir()
{
- return QString( QDir::homeDirPath() + "/Documents");
+ const char* base = getenv( "HOME");
+ if( base )
+ return QString( base ) + "/Documents";
+
+ return QString( "../Documents" );
}