From 63358567d7662f0460454e57402a6c989eb1dffa Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Thu, 28 Jul 2016 18:16:26 +0530 Subject: [PATCH] add some debug to figure out why qt4 apps don't start --- containments/homescreen/applicationlistmodel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/containments/homescreen/applicationlistmodel.cpp b/containments/homescreen/applicationlistmodel.cpp index 289146c5..18ef7c57 100644 --- a/containments/homescreen/applicationlistmodel.cpp +++ b/containments/homescreen/applicationlistmodel.cpp @@ -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()); }