author | mickeyl <mickeyl> | 2004-02-24 16:19:56 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-02-24 16:19:56 (UTC) |
commit | e3e4d0cca07dfa5487acb54596ac978f2343fc40 (patch) (side-by-side diff) | |
tree | 1b995ed3b874b8f3ac55311ea516ded3a81e469f /core | |
parent | 607c6aff17cd1c26d36b94d8e7ef149cfed70142 (diff) | |
download | opie-e3e4d0cca07dfa5487acb54596ac978f2343fc40.zip opie-e3e4d0cca07dfa5487acb54596ac978f2343fc40.tar.gz opie-e3e4d0cca07dfa5487acb54596ac978f2343fc40.tar.bz2 |
why not tell us something informative when you're telling us something anyway?
-rw-r--r-- | core/launcher/applauncher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/applauncher.cpp b/core/launcher/applauncher.cpp index a8779a5..c3584ad 100644 --- a/core/launcher/applauncher.cpp +++ b/core/launcher/applauncher.cpp @@ -463,49 +463,49 @@ bool AppLauncher::executeBuiltin(const QString &c, const QString &document) } #ifndef QT_NO_COP QCopEnvelope e("QPE/System", "notBusy(QString)" ); e << c; // that was quick ;-) #endif return TRUE; } } } // Convert the command line in to a list of arguments QStringList list = QStringList::split(QRegExp(" *"),c); QString ap=list[0]; if ( ap == "suspend" ) { // No tr QWSServer::processKeyEvent( 0xffff, Qt::Key_F34, FALSE, TRUE, FALSE ); return TRUE; } return FALSE; } bool AppLauncher::execute(const QString &c, const QString &docParam, bool noRaise) { - qWarning("AppLauncher::execute"); + 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 ); QString appName = list[0]; if ( isRunning(appName) ) { QCString channel = "QPE/Application/"; channel += appName.latin1(); // Need to lock it to avoid race conditions with QPEApplication::processQCopFile QFile f(QString::fromLatin1("/tmp/qcop-msg-") + appName); if ( !noRaise && f.open(IO_WriteOnly | IO_Append) ) { #ifndef Q_OS_WIN32 flock(f.handle(), LOCK_EX); #endif QDataStream ds(&f); QByteArray b; QDataStream bstream(b, IO_WriteOnly); if ( !f.size() ) { ds << channel << QCString("raise()") << b; if ( !waitingHeartbeat.contains( appName ) && appKillerName != appName ) { int id = startTimer(RAISE_TIMEOUT_MS); |