|
|
|
@ -24,7 +24,7 @@
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "tdepowersave.h"
|
|
|
|
|
#include <kuniqueapplication.h>
|
|
|
|
|
#include <tdeuniqueapplication.h>
|
|
|
|
|
#include <tdeaboutdata.h>
|
|
|
|
|
#include <tdecmdlineargs.h>
|
|
|
|
|
#include <tdelocale.h>
|
|
|
|
@ -74,16 +74,16 @@ int kdemain(int argc, char **argv)
|
|
|
|
|
|
|
|
|
|
TDECmdLineArgs::init(argc, argv, &about);
|
|
|
|
|
TDECmdLineArgs::addCmdLineOptions (options);
|
|
|
|
|
KUniqueApplication::addCmdLineOptions();
|
|
|
|
|
TDEUniqueApplication::addCmdLineOptions();
|
|
|
|
|
|
|
|
|
|
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
|
|
|
|
|
|
|
|
|
if (!KUniqueApplication::start()) {
|
|
|
|
|
if (!TDEUniqueApplication::start()) {
|
|
|
|
|
fprintf(stderr, "TDEPowersave is already running!\n");
|
|
|
|
|
exit(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KUniqueApplication app;
|
|
|
|
|
TDEUniqueApplication app;
|
|
|
|
|
app.disableSessionManagement();
|
|
|
|
|
|
|
|
|
|
tdepowersave *mainWin = 0;
|
|
|
|
|