inputmethod: Fix read setting

It's specified as a Path in the kcfg file and the KCM will replace the
/home path into $HOME, and I imagine it may do some others likethat.

BUG: 450430
This commit is contained in:
Aleix Pol 2022-02-17 16:34:42 +01:00 committed by Aleix Pol Gonzalez
parent 03a3ae666c
commit b1c1603c8c

View file

@ -210,7 +210,7 @@ void ApplicationWayland::refreshSettings(const KConfigGroup &group, const QByteA
return; return;
} }
KDesktopFile file(group.readEntry("InputMethod", QString())); KDesktopFile file(group.readPathEntry("InputMethod", QString()));
InputMethod::self()->setInputMethodCommand(file.desktopGroup().readEntry("Exec", QString())); InputMethod::self()->setInputMethodCommand(file.desktopGroup().readEntry("Exec", QString()));
} }