|
|
@ -34,14 +34,15 @@ main( int argc, char *argv[] )
|
|
|
|
parser.setApplicationDescription( "Distribution-independent installer framework" );
|
|
|
|
parser.setApplicationDescription( "Distribution-independent installer framework" );
|
|
|
|
parser.addHelpOption();
|
|
|
|
parser.addHelpOption();
|
|
|
|
parser.addVersionOption();
|
|
|
|
parser.addVersionOption();
|
|
|
|
QCommandLineOption verboseOption( QStringList() << "v" << "verbose",
|
|
|
|
QCommandLineOption debugOption( QStringList() << "d" << "debug",
|
|
|
|
"Verbose output for debugging purposes." );
|
|
|
|
"Verbose output for debugging purposes." );
|
|
|
|
parser.addOption( verboseOption );
|
|
|
|
parser.addOption( debugOption );
|
|
|
|
|
|
|
|
|
|
|
|
parser.process( a );
|
|
|
|
parser.process( a );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a.setDebug( parser.isSet( debugOption ) );
|
|
|
|
|
|
|
|
|
|
|
|
KDSingleApplicationGuard guard( KDSingleApplicationGuard::AutoKillOtherInstances );
|
|
|
|
KDSingleApplicationGuard guard( KDSingleApplicationGuard::AutoKillOtherInstances );
|
|
|
|
QObject::connect( &guard, SIGNAL( instanceStarted( KDSingleApplicationGuard::Instance ) ), &a, SLOT( instanceStarted( KDSingleApplicationGuard::Instance ) ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int returnCode = 0;
|
|
|
|
int returnCode = 0;
|
|
|
|
if ( guard.isPrimaryInstance() )
|
|
|
|
if ( guard.isPrimaryInstance() )
|
|
|
|