|
|
|
@ -279,13 +279,13 @@ namespace
|
|
|
|
|
void App::handleCliArgs() //static
|
|
|
|
|
{
|
|
|
|
|
static char cwd[PATH_MAX];
|
|
|
|
|
KCmdLineArgs* const args = KCmdLineArgs::parsedArgs();
|
|
|
|
|
TDECmdLineArgs* const args = TDECmdLineArgs::parsedArgs();
|
|
|
|
|
|
|
|
|
|
if ( args->isSet( "cwd" ) )
|
|
|
|
|
{
|
|
|
|
|
strncpy(cwd, args->getOption( "cwd" ), sizeof(cwd) );
|
|
|
|
|
cwd[sizeof(cwd)-1] = '\0';
|
|
|
|
|
KCmdLineArgs::setCwd( cwd );
|
|
|
|
|
TDECmdLineArgs::setCwd( cwd );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool haveArgs = false;
|
|
|
|
@ -421,9 +421,9 @@ void App::initCliArgs( int argc, char *argv[] ) //static
|
|
|
|
|
{ 0, 0, 0 }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
KCmdLineArgs::reset();
|
|
|
|
|
KCmdLineArgs::init( argc, argv, &::aboutData ); //calls KApplication::addCmdLineOptions()
|
|
|
|
|
KCmdLineArgs::addCmdLineOptions( options ); //add our own options
|
|
|
|
|
TDECmdLineArgs::reset();
|
|
|
|
|
TDECmdLineArgs::init( argc, argv, &::aboutData ); //calls KApplication::addCmdLineOptions()
|
|
|
|
|
TDECmdLineArgs::addCmdLineOptions( options ); //add our own options
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -759,7 +759,7 @@ void
|
|
|
|
|
App::continueInit()
|
|
|
|
|
{
|
|
|
|
|
DEBUG_BLOCK
|
|
|
|
|
const KCmdLineArgs* const args = KCmdLineArgs::parsedArgs();
|
|
|
|
|
const TDECmdLineArgs* const args = TDECmdLineArgs::parsedArgs();
|
|
|
|
|
bool restoreSession = args->count() == 0 || args->isSet( "append" ) || args->isSet( "enqueue" )
|
|
|
|
|
|| Amarok::config()->readBoolEntry( "AppendAsDefault", false );
|
|
|
|
|
|
|
|
|
|