summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-03-08 16:37:42 (UTC)
committer mickeyl <mickeyl>2004-03-08 16:37:42 (UTC)
commit2599910741451f86323af10585c858d217a122d5 (patch) (side-by-side diff)
treee00a51cc13f2cfd85eb79e9af7a79d69f777ad77
parent82fb70f4e5d8582185da89264e1a1e3b2517f459 (diff)
downloadopie-2599910741451f86323af10585c858d217a122d5.zip
opie-2599910741451f86323af10585c858d217a122d5.tar.gz
opie-2599910741451f86323af10585c858d217a122d5.tar.bz2
support launching applications with user defined arguments
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--library/applnk.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/applnk.cpp b/library/applnk.cpp
index 9c60f1a..5f7da8e 100644
--- a/library/applnk.cpp
+++ b/library/applnk.cpp
@@ -667,7 +667,7 @@ AppLnk::~AppLnk()
*/
void AppLnk::execute() const
{
- execute(QStringList());
+ execute( QStringList::split( ' ', property( "Arguments" ) ) );
}
/*!
@@ -701,7 +701,10 @@ void AppLnk::execute(const QStringList& args) const
*/
void AppLnk::invoke(const QStringList& args) const
{
+ if ( property( "Arguments" ).isEmpty() )
Global::execute( exec(), args[0] );
+ else
+ Global::execute( exec(), args.join( " " ) );
}
/*!