summaryrefslogtreecommitdiffabout
path: root/korganizer
authorulf69 <ulf69>2004-07-02 15:35:34 (UTC)
committer ulf69 <ulf69>2004-07-02 15:35:34 (UTC)
commitb21b6754c93e5aaa53638a060e26f4efea755d37 (patch) (side-by-side diff)
tree2a78ca54cda74c2bff11c1244741d1bc48994ad6 /korganizer
parentbb7ad945c1541684a02e853fdaabd0e3ba74f8df (diff)
downloadkdepimpi-b21b6754c93e5aaa53638a060e26f4efea755d37.zip
kdepimpi-b21b6754c93e5aaa53638a060e26f4efea755d37.tar.gz
kdepimpi-b21b6754c93e5aaa53638a060e26f4efea755d37.tar.bz2
removed references to Global::applicationFileName because this call creates the appdir
in ~/Applications/ which is not correct for MicroKDE
Diffstat (limited to 'korganizer') (more/less context) (show 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
@@ -36,49 +36,51 @@ int main( int argc, char **argv )
printf(" -help: This output\n");
printf("Next Option: Open or Show after start:\n");
printf(" -newTodo: New Todo dialog\n");
printf(" -newEvent: New Event dialog\n");
printf(" -showList: List view\n");
printf(" -showDay: Day view\n");
printf(" -showWWeek: Work Week view\n");
printf(" -showWeek: Week view\n");
printf(" -showTodo: Todo view\n");
printf(" -showJournal: Journal view\n");
printf(" -showKO: Next Days view\n");
printf(" -showWNext: What's Next view\n");
printf(" -showNextXView: Next X View\n");
printf(" -new[Y] and -show[X] may be used togehther\n");
printf(" KO/Pi is exiting now. Bye!\n");
exitHelp = true;
}
}
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\\";
#endif
KGlobal::iconLoader()->setIconPath(fileName);
QString appdir = QDir::homeDirPath();
//appdir = "C:\\";
if ( appdir.right(1) == "\\" || appdir.right(1) == "/" )
appdir += "korganizer";
else
appdir += "/korganizer";
KStandardDirs::setAppDir( QDir::convertSeparators( appdir ));
// qDebug(" %s ",KStandardDirs::appDir().latin1() );
#endif
QDir app_dir;
if ( !app_dir.exists(KStandardDirs::appDir()) )
app_dir.mkdir (KStandardDirs::appDir());