mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 02:04:45 +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
|
property bool isDropTarget: delegateRoot != dragDelegate && root.reorderingApps && applicationsView.dragData && applicationsView.dragData.ApplicationStorageIdRole == modelData.ApplicationStorageIdRole
|
||||||
|
|
||||||
opacity: isDropTarget ? 0.3 : 1
|
opacity: isDropTarget ? 0.3 : 1
|
||||||
onModelDataChanged:print("AAAA");
|
|
||||||
PlasmaCore.IconItem {
|
PlasmaCore.IconItem {
|
||||||
id: icon
|
id: icon
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,8 @@ void ApplicationListModel::runApplication(const QString &storageId)
|
||||||
|
|
||||||
KService::Ptr service = KService::serviceByStorageId(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
|
QStringList ApplicationListModel::appOrder() const
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue