|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
#include <tdelocale.h>
|
|
|
|
|
#include <kcrash.h>
|
|
|
|
|
#include <kdebug.h>
|
|
|
|
|
#include <kuniqueapplication.h>
|
|
|
|
|
#include <tdeuniqueapplication.h>
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
@ -74,7 +74,7 @@ int main(int argc, char *argv[])
|
|
|
|
|
TDEApplication::addCmdLineOptions();
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef _ENABLE_DEBUG
|
|
|
|
|
KUniqueApplication::addCmdLineOptions();
|
|
|
|
|
TDEUniqueApplication::addCmdLineOptions();
|
|
|
|
|
#endif
|
|
|
|
|
if ((TQString("%1").arg(argv[1]) == "-kill") || (TQString("%1").arg(argv[1]) == "-k")) {
|
|
|
|
|
int status = system("killall kooldock");
|
|
|
|
@ -83,14 +83,14 @@ int main(int argc, char *argv[])
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifndef _ENABLE_DEBUG
|
|
|
|
|
if (!KUniqueApplication::start()) {
|
|
|
|
|
if (!TDEUniqueApplication::start()) {
|
|
|
|
|
fprintf(stderr, "Kooldock is already running!\n");
|
|
|
|
|
exit(0);
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef _ENABLE_DEBUG
|
|
|
|
|
KUniqueApplication a;
|
|
|
|
|
TDEUniqueApplication a;
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef _ENABLE_DEBUG
|
|
|
|
|
TDEApplication a;
|
|
|
|
|