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

This commit is contained in:
Bhushan Shah 2016-07-28 18:16:26 +05:30
parent c5c6368d55
commit 63358567d7

View file

@ -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());
}