-rw-r--r-- | korganizer/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/korganizer/main.cpp b/korganizer/main.cpp index 211fde6..04fb234 100644 --- a/korganizer/main.cpp +++ b/korganizer/main.cpp | |||
@@ -28,2 +28,3 @@ int main( int argc, char **argv ) | |||
28 | { | 28 | { |
29 | if(!getenv("KDEPIMPIDIR")) putenv("KDEPIMPIDIR=/usr/lib/kdepimpi"); | ||
29 | if(!getenv("QPEDIR")) putenv("QPEDIR=/usr/lib/kdepimpi"); | 30 | if(!getenv("QPEDIR")) putenv("QPEDIR=/usr/lib/kdepimpi"); |
@@ -81,3 +82,7 @@ int main( int argc, char **argv ) | |||
81 | #else | 82 | #else |
82 | fileName = qApp->applicationDirPath () + "/kdepim/korganizer/"; | 83 | const char *kpd = ::getenv("KDEPIMPIDIR"); |
84 | if(kpd) | ||
85 | fileName = QString(kpd) + "/korganizer/"; | ||
86 | else | ||
87 | fileName = qApp->applicationDirPath () + "/kdepim/korganizer/"; | ||
83 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); | 88 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); |