Commit 63358567 authored by Bhushan Shah's avatar Bhushan Shah

add some debug to figure out why qt4 apps don't start

parent c5c6368d
......@@ -250,9 +250,12 @@ void ApplicationListModel::runApplication(const QString &storageId)
KService::Ptr service = KService::serviceByStorageId(storageId);
//ignore parameters like %u
QStringList args = KShell::splitArgs(service->exec().replace(QRegExp("%\\w"), ""));
QString exec = args.takeFirst();
//ignore parameters like %u
qDebug() << "exec -> " << exec;
qDebug() << "args -> " << args;
qDebug() << "path -> " << service->path();
QProcess::startDetached(exec, args, service->path());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment