author | ulf69 <ulf69> | 2004-07-02 15:35:34 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-07-02 15:35:34 (UTC) |
commit | b21b6754c93e5aaa53638a060e26f4efea755d37 (patch) (unidiff) | |
tree | 2a78ca54cda74c2bff11c1244741d1bc48994ad6 /korganizer/main.cpp | |
parent | bb7ad945c1541684a02e853fdaabd0e3ba74f8df (diff) | |
download | kdepimpi-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
-rw-r--r-- | korganizer/main.cpp | 4 |
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 | |||
@@ -44,33 +44,35 @@ int main( int argc, char **argv ) | |||
44 | printf(" -showTodo: Todo view\n"); | 44 | printf(" -showTodo: Todo view\n"); |
45 | printf(" -showJournal: Journal view\n"); | 45 | printf(" -showJournal: Journal view\n"); |
46 | printf(" -showKO: Next Days view\n"); | 46 | printf(" -showKO: Next Days view\n"); |
47 | printf(" -showWNext: What's Next view\n"); | 47 | printf(" -showWNext: What's Next view\n"); |
48 | printf(" -showNextXView: Next X View\n"); | 48 | printf(" -showNextXView: Next X View\n"); |
49 | printf(" -new[Y] and -show[X] may be used togehther\n"); | 49 | printf(" -new[Y] and -show[X] may be used togehther\n"); |
50 | printf(" KO/Pi is exiting now. Bye!\n"); | 50 | printf(" KO/Pi is exiting now. Bye!\n"); |
51 | exitHelp = true; | 51 | exitHelp = true; |
52 | } | 52 | } |
53 | } | 53 | } |
54 | if ( ! exitHelp ) { | 54 | if ( ! exitHelp ) { |
55 | KGlobal::setAppName( "korganizer" ); | 55 | KGlobal::setAppName( "korganizer" ); |
56 | 56 | ||
57 | 57 | ||
58 | QString fileName ; | 58 | QString fileName ; |
59 | #ifndef DESKTOP_VERSION | 59 | #ifndef DESKTOP_VERSION |
60 | KStandardDirs::setAppDir( Global::applicationFileName( "korganizer", "" ) ); | 60 | QString appdir = QDir::homeDirPath() + "/kdepim/apps/" + KGlobal::getAppName(); |
61 | KStandardDirs::setAppDir( appdir ); | ||
62 | |||
61 | fileName = getenv("QPEDIR"); | 63 | fileName = getenv("QPEDIR"); |
62 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/korganizer/"); | 64 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/korganizer/"); |
63 | #else | 65 | #else |
64 | 66 | ||
65 | #ifndef _WIN32_ | 67 | #ifndef _WIN32_ |
66 | fileName = qApp->applicationDirPath () + "/kdepim/korganizer/"; | 68 | fileName = qApp->applicationDirPath () + "/kdepim/korganizer/"; |
67 | #else | 69 | #else |
68 | fileName = qApp->applicationDirPath () + "\\kdepim\\korganizer\\"; | 70 | fileName = qApp->applicationDirPath () + "\\kdepim\\korganizer\\"; |
69 | #endif | 71 | #endif |
70 | 72 | ||
71 | KGlobal::iconLoader()->setIconPath(fileName); | 73 | KGlobal::iconLoader()->setIconPath(fileName); |
72 | 74 | ||
73 | QString appdir = QDir::homeDirPath(); | 75 | QString appdir = QDir::homeDirPath(); |
74 | //appdir = "C:\\"; | 76 | //appdir = "C:\\"; |
75 | if ( appdir.right(1) == "\\" || appdir.right(1) == "/" ) | 77 | if ( appdir.right(1) == "\\" || appdir.right(1) == "/" ) |
76 | appdir += "korganizer"; | 78 | appdir += "korganizer"; |