From 2d909f69f4872e9ce9252ddd28cb92497820b93b Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sat, 11 Apr 2015 14:48:24 +0200 Subject: [PATCH] ignore parameters like %u in executing apps --- containments/homescreen/contents/ui/HomeLauncher.qml | 2 +- qmlcomponents/applicationlistmodel.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/containments/homescreen/contents/ui/HomeLauncher.qml b/containments/homescreen/contents/ui/HomeLauncher.qml index a12fecef..ffd23976 100644 --- a/containments/homescreen/contents/ui/HomeLauncher.qml +++ b/containments/homescreen/contents/ui/HomeLauncher.qml @@ -12,7 +12,7 @@ Item { property bool isDropTarget: delegateRoot != dragDelegate && root.reorderingApps && applicationsView.dragData && applicationsView.dragData.ApplicationStorageIdRole == modelData.ApplicationStorageIdRole opacity: isDropTarget ? 0.3 : 1 -onModelDataChanged:print("AAAA"); + PlasmaCore.IconItem { id: icon anchors.centerIn: parent diff --git a/qmlcomponents/applicationlistmodel.cpp b/qmlcomponents/applicationlistmodel.cpp index 77f54e0d..540161bc 100644 --- a/qmlcomponents/applicationlistmodel.cpp +++ b/qmlcomponents/applicationlistmodel.cpp @@ -205,7 +205,8 @@ void ApplicationListModel::runApplication(const QString &storageId) KService::Ptr service = KService::serviceByStorageId(storageId); - QProcess::startDetached(service->exec()); + //ignore parameters like %u + QProcess::startDetached(service->exec().replace(QRegExp("%\\w"), "")); } QStringList ApplicationListModel::appOrder() const