summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/korganizer/main.cpp b/korganizer/main.cpp
index 211fde6..04fb234 100644
--- a/korganizer/main.cpp
+++ b/korganizer/main.cpp
@@ -26,6 +26,7 @@ void dumpMissing();
int main( int argc, char **argv )
{
+ if(!getenv("KDEPIMPIDIR")) putenv("KDEPIMPIDIR=/usr/lib/kdepimpi");
if(!getenv("QPEDIR")) putenv("QPEDIR=/usr/lib/kdepimpi");
#ifndef DESKTOP_VERSION
QPEApplication a( argc, argv );
@@ -79,6 +80,10 @@ int main( int argc, char **argv )
fileName = getenv("QPEDIR");
KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/korganizer/");
#else
+ const char *kpd = ::getenv("KDEPIMPIDIR");
+ if(kpd)
+ fileName = QString(kpd) + "/korganizer/";
+ else
fileName = qApp->applicationDirPath () + "/kdepim/korganizer/";
KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName));
#endif