From afa450b97af9cfd373c9a640b086061afc56fe14 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Mon, 19 Feb 2024 21:31:58 +0100 Subject: [PATCH] Set componentDisplayName for shortcut migration Otherwise the binary name is used as display name, causing all kwin shortcuts to be registered under kwin-6.0-delete-desktop-switching-shortcuts --- kconf_update/kwin-6.0-delete-desktop-switching-shortcuts.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/kconf_update/kwin-6.0-delete-desktop-switching-shortcuts.cpp b/kconf_update/kwin-6.0-delete-desktop-switching-shortcuts.cpp index 5aba1bab76..5acff0ed5e 100644 --- a/kconf_update/kwin-6.0-delete-desktop-switching-shortcuts.cpp +++ b/kconf_update/kwin-6.0-delete-desktop-switching-shortcuts.cpp @@ -25,6 +25,7 @@ int main(int argc, char **argv) QAction action; action.setObjectName(actionName); action.setProperty("componentName", QStringLiteral("kwin")); + action.setProperty("componentDisplayName", QStringLiteral("KWin")); KGlobalAccel::self()->setShortcut(&action, {QKeySequence()}, KGlobalAccel::NoAutoloading); KGlobalAccel::self()->removeAllShortcuts(&action); }