|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
%{CPP_TEMPLATE}
|
|
|
|
|
|
|
|
|
|
#include <kuniqueapplication.h>
|
|
|
|
|
#include <tdeuniqueapplication.h>
|
|
|
|
|
#include <tdeaboutdata.h>
|
|
|
|
|
#include <tdecmdlineargs.h>
|
|
|
|
|
#include <kdebug.h>
|
|
|
|
@ -28,15 +28,15 @@ int main (int argc, char *argv[])
|
|
|
|
|
|
|
|
|
|
TDECmdLineArgs::init( argc, argv, &aboutdata );
|
|
|
|
|
TDECmdLineArgs::addCmdLineOptions( options );
|
|
|
|
|
KUniqueApplication::addCmdLineOptions();
|
|
|
|
|
TDEUniqueApplication::addCmdLineOptions();
|
|
|
|
|
|
|
|
|
|
if (!KUniqueApplication::start())
|
|
|
|
|
if (!TDEUniqueApplication::start())
|
|
|
|
|
{
|
|
|
|
|
kdDebug() << "%{APPNAMELC} is already running!" << endl;
|
|
|
|
|
return (0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KUniqueApplication app;
|
|
|
|
|
TDEUniqueApplication app;
|
|
|
|
|
kdDebug() << "starting %{APPNAMELC} " << endl;
|
|
|
|
|
// This app is started automatically, no need for session management
|
|
|
|
|
app.disableSessionManagement();
|
|
|
|
|