|
|
@ -16,7 +16,7 @@
|
|
|
|
#include <tdeaboutdata.h>
|
|
|
|
#include <tdeaboutdata.h>
|
|
|
|
#include <tdecmdlineargs.h>
|
|
|
|
#include <tdecmdlineargs.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <kuniqueapplication.h>
|
|
|
|
#include <tdeuniqueapplication.h>
|
|
|
|
|
|
|
|
|
|
|
|
static const char *description =
|
|
|
|
static const char *description =
|
|
|
|
I18N_NOOP("A small CPU usage meter for Kicker (the TDE panel).");
|
|
|
|
I18N_NOOP("A small CPU usage meter for Kicker (the TDE panel).");
|
|
|
@ -51,14 +51,14 @@ int main(int argc, char **argv) {
|
|
|
|
"being supportive and helpful!");
|
|
|
|
"being supportive and helpful!");
|
|
|
|
|
|
|
|
|
|
|
|
TDECmdLineArgs::init(argc, argv, &aboutData);
|
|
|
|
TDECmdLineArgs::init(argc, argv, &aboutData);
|
|
|
|
KUniqueApplication::addCmdLineOptions();
|
|
|
|
TDEUniqueApplication::addCmdLineOptions();
|
|
|
|
|
|
|
|
|
|
|
|
if (! KUniqueApplication::start()) {
|
|
|
|
if (! TDEUniqueApplication::start()) {
|
|
|
|
fprintf(stderr, I18N_NOOP("KCPULoad is already running!\n"));
|
|
|
|
fprintf(stderr, I18N_NOOP("KCPULoad is already running!\n"));
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KUniqueApplication app;
|
|
|
|
TDEUniqueApplication app;
|
|
|
|
app.setMainWidget(new KCPULoad());
|
|
|
|
app.setMainWidget(new KCPULoad());
|
|
|
|
return app.exec();
|
|
|
|
return app.exec();
|
|
|
|
}
|
|
|
|
}
|
|
|
|