mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
ignore parameters like %u in executing apps
This commit is contained in:
parent
e3913eb107
commit
2d909f69f4
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue