https://bugs.kde.org/show_bug.cgi?id=428024

--- Comment #5 from Michal Ziabkowski <mz...@o2.pl> ---
So here's an interesting thing I've discovered:

The global shortcut seems to work on a fresh user account, but here's the
kicker: the line written in kglobalshortcutsrc is different.

On my old, non-working profile, the global shortcut line is:
Toggle Night Color=Meta+N,none,Toggle Night Color

On the new, fresh one it's localized in Polish:
Przełącz barwy nocne=Meta+N,none,Przełącz barwy nocne

I remember this shortcut not having a localized caption when I first set it.
And apparently now it's localized in Plasma 5.20. However, the global shortcuts
kcm still shows the old, English name and not the new localized one, which
apparently the shortcut not to work altogether.

But something about this seemed wrong, so I took a closer look at the KWin
source code. This stood out to me in colorcorrection/manager.cpp:

    toggleAction->setProperty("componentName", QStringLiteral(KWIN_NAME));
    toggleAction->setObjectName(i18n("Toggle Night Color"));
    toggleAction->setText(i18n("Toggle Night Color"));

I believe the issue stems from setObjectName using i18n instead of
QStringLiteral, so the localized caption is used as the shortcut identifier.

This bug wasn't reproducible on your setup, since you're likely using English
locale, avoiding the issue entirely.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to