summaryrefslogtreecommitdiffabout
path: root/korganizer/main.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/korganizer/main.cpp b/korganizer/main.cpp
index 6843595..a357988 100644
--- a/korganizer/main.cpp
+++ b/korganizer/main.cpp
@@ -52,17 +52,19 @@ int main( int argc, char **argv )
}
}
if ( ! exitHelp ) {
KGlobal::setAppName( "korganizer" );
QString fileName ;
#ifndef DESKTOP_VERSION
- KStandardDirs::setAppDir( Global::applicationFileName( "korganizer", "" ) );
+ QString appdir = QDir::homeDirPath() + "/kdepim/apps/" + KGlobal::getAppName();
+ KStandardDirs::setAppDir( appdir );
+
fileName = getenv("QPEDIR");
KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/korganizer/");
#else
#ifndef _WIN32_
fileName = qApp->applicationDirPath () + "/kdepim/korganizer/";
#else
fileName = qApp->applicationDirPath () + "\\kdepim\\korganizer\\";