|
|
|
@ -20,7 +20,7 @@
|
|
|
|
|
#include <tdecmdlineargs.h>
|
|
|
|
|
#include <tdelocale.h>
|
|
|
|
|
#include <tdeapplication.h>
|
|
|
|
|
#include <kuniqueapplication.h>
|
|
|
|
|
#include <tdeuniqueapplication.h>
|
|
|
|
|
|
|
|
|
|
#include "knutclient.h"
|
|
|
|
|
|
|
|
|
@ -53,21 +53,21 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
|
|
|
|
TDECmdLineArgs::init( argc, argv, &aboutData );
|
|
|
|
|
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
|
|
|
|
|
KUniqueApplication::addCmdLineOptions();
|
|
|
|
|
TDEUniqueApplication::addCmdLineOptions();
|
|
|
|
|
|
|
|
|
|
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
|
|
|
|
|
bool noDock = args->isSet("dock");
|
|
|
|
|
args->clear();
|
|
|
|
|
|
|
|
|
|
// main KUApp this is remark
|
|
|
|
|
if (!KUniqueApplication::start()) {
|
|
|
|
|
if (!TDEUniqueApplication::start()) {
|
|
|
|
|
fprintf(stderr,"Sorry : KNutClient is already running!\n");
|
|
|
|
|
exit(0);
|
|
|
|
|
}
|
|
|
|
|
KUniqueApplication a;
|
|
|
|
|
TDEUniqueApplication a;
|
|
|
|
|
|
|
|
|
|
// next line is for testing only.
|
|
|
|
|
// I don't debug KUniqueApplication
|
|
|
|
|
// I don't debug TDEUniqueApplication
|
|
|
|
|
|
|
|
|
|
// TDEApplication a;
|
|
|
|
|
//
|
|
|
|
|