diff --git a/containments/homescreen/applicationlistmodel.cpp b/containments/homescreen/applicationlistmodel.cpp index 18ef7c57..ce34d359 100644 --- a/containments/homescreen/applicationlistmodel.cpp +++ b/containments/homescreen/applicationlistmodel.cpp @@ -241,7 +241,6 @@ Q_INVOKABLE void ApplicationListModel::moveItem(int row, int destination) endMoveRows(); } -//TODO: the implementation of runApplicationKRun should be the only one remaining void ApplicationListModel::runApplication(const QString &storageId) { if (storageId.isEmpty()) { @@ -250,23 +249,6 @@ 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(); - qDebug() << "exec -> " << exec; - qDebug() << "args -> " << args; - qDebug() << "path -> " << service->path(); - QProcess::startDetached(exec, args, service->path()); -} - -void ApplicationListModel::runApplicationKRun(const QString &storageId) -{ - if (storageId.isEmpty()) { - return; - } - - KService::Ptr service = KService::serviceByStorageId(storageId); - KRun::run(*service, QList(), 0); } diff --git a/containments/homescreen/applicationlistmodel.h b/containments/homescreen/applicationlistmodel.h index 2d2da610..a5094566 100644 --- a/containments/homescreen/applicationlistmodel.h +++ b/containments/homescreen/applicationlistmodel.h @@ -71,8 +71,6 @@ public: Q_INVOKABLE void runApplication(const QString &storageId); - Q_INVOKABLE void runApplicationKRun(const QString &storageId); - Q_INVOKABLE void loadApplications(); public Q_SLOTS: