summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2007-07-10 22:35:13 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-10 22:35:13 (UTC)
commit1c5369f3785b118ff4d18c4940913b800dd201fb (patch) (side-by-side diff)
treefa2927b679af83e9fe70f5333d05a88484dbb8bf
parentde61d6005b51bc62f01786e06cd964e530c1bf83 (diff)
downloadkdepimpi-1c5369f3785b118ff4d18c4940913b800dd201fb.zip
kdepimpi-1c5369f3785b118ff4d18c4940913b800dd201fb.tar.gz
kdepimpi-1c5369f3785b118ff4d18c4940913b800dd201fb.tar.bz2
pwmanager: look in proper directoriesp2
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--pwmanager/pwmanager/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/main.cpp b/pwmanager/pwmanager/main.cpp
index acb0011..a39d983 100644
--- a/pwmanager/pwmanager/main.cpp
+++ b/pwmanager/pwmanager/main.cpp
@@ -141,8 +141,9 @@ static void addAuthors(KAboutData *aboutData)
#endif
int main(int argc, char *argv[])
{
+ if(!getenv("KDEPIMPIDIR")) putenv("KDEPIMPIDIR=/usr/lib/kdepimpi");
if(!getenv("QPEDIR")) putenv("QPEDIR=/usr/lib/kdepimpi");
printDebugConfigureInfo();
#ifndef PWM_EMBEDDED
KAboutData aboutData(PACKAGE_NAME, PROG_NAME,
@@ -188,8 +189,12 @@ int main(int argc, char *argv[])
else
KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/pwmanager/icons16/");
#else
QString fileName ;
+ const char *kpd = ::getenv("KDEPIMPIDIR");
+ if(kpd)
+ fileName = QString(kpd) + "/pwmanager/icons22/";
+ else
fileName = qApp->applicationDirPath () + "/kdepim/pwmanager/icons22/";
KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName));
QApplication::addLibraryPath ( qApp->applicationDirPath () );