summaryrefslogtreecommitdiff
path: root/core
authormickeyl <mickeyl>2004-03-08 16:43:36 (UTC)
committer mickeyl <mickeyl>2004-03-08 16:43:36 (UTC)
commitbad368ebceecc3dd976e8eb206c773b5df6d11ef (patch) (side-by-side diff)
tree507629b85391f5245bbcb63a0dc73333c171ece1 /core
parent2599910741451f86323af10585c858d217a122d5 (diff)
downloadopie-bad368ebceecc3dd976e8eb206c773b5df6d11ef.zip
opie-bad368ebceecc3dd976e8eb206c773b5df6d11ef.tar.gz
opie-bad368ebceecc3dd976e8eb206c773b5df6d11ef.tar.bz2
support launching applications with user defined arguments
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/applauncher.cpp5
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
@@ -483,8 +483,9 @@ bool AppLauncher::execute(const QString &c, const QString &docParam, bool noRais
qWarning("AppLauncher::execute '%s' '%s'", (const char*) c, (const char*) docParam );
// Convert the command line in to a list of arguments
QStringList list = QStringList::split(QRegExp(" *"),c);
- if ( !docParam.isEmpty() )
- list.append( docParam );
+ QStringList arglist = QStringList::split(QRegExp(" *"),docParam);
+ for ( QStringList::Iterator it = arglist.begin(); it != arglist.end(); ++it )
+ list.append( *it );
QString appName = list[0];
if ( isRunning(appName) ) {