-rw-r--r-- | core/launcher/applauncher.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/launcher/applauncher.cpp b/core/launcher/applauncher.cpp index 08a3cb4..efbf426 100644 --- a/core/launcher/applauncher.cpp +++ b/core/launcher/applauncher.cpp | |||
@@ -478,18 +478,19 @@ bool AppLauncher::executeBuiltin(const QString &c, const QString &document) | |||
478 | return FALSE; | 478 | return FALSE; |
479 | } | 479 | } |
480 | 480 | ||
481 | bool AppLauncher::execute(const QString &c, const QString &docParam, bool noRaise) | 481 | bool AppLauncher::execute(const QString &c, const QString &docParam, bool noRaise) |
482 | { | 482 | { |
483 | qWarning("AppLauncher::execute '%s' '%s'", (const char*) c, (const char*) docParam ); | 483 | qWarning("AppLauncher::execute '%s' '%s'", (const char*) c, (const char*) docParam ); |
484 | // Convert the command line in to a list of arguments | 484 | // Convert the command line in to a list of arguments |
485 | QStringList list = QStringList::split(QRegExp(" *"),c); | 485 | QStringList list = QStringList::split(QRegExp(" *"),c); |
486 | if ( !docParam.isEmpty() ) | 486 | QStringList arglist = QStringList::split(QRegExp(" *"),docParam); |
487 | list.append( docParam ); | 487 | for ( QStringList::Iterator it = arglist.begin(); it != arglist.end(); ++it ) |
488 | list.append( *it ); | ||
488 | 489 | ||
489 | QString appName = list[0]; | 490 | QString appName = list[0]; |
490 | if ( isRunning(appName) ) { | 491 | if ( isRunning(appName) ) { |
491 | QCString channel = "QPE/Application/"; | 492 | QCString channel = "QPE/Application/"; |
492 | channel += appName.latin1(); | 493 | channel += appName.latin1(); |
493 | 494 | ||
494 | // Need to lock it to avoid race conditions with QPEApplication::processQCopFile | 495 | // Need to lock it to avoid race conditions with QPEApplication::processQCopFile |
495 | QFile f(QString::fromLatin1("/tmp/qcop-msg-") + appName); | 496 | QFile f(QString::fromLatin1("/tmp/qcop-msg-") + appName); |