lomiri.lomiri-system-settings: Patch language plugin's locale lookup path

The only part this really affects for us is Lomiri's First-Time-Launch Wizard, which uses the found & filtered
locale identifiers for a language selection & gets stuck unless at least 1 valid language has been found.

This makes the wizard process completable, in case we ever re-enable it.
This commit is contained in:
OPNA2608 2024-03-05 18:55:22 +01:00 committed by Weijia Wang
parent c1af1ec922
commit 9c5e9db5bf

View file

@ -125,6 +125,11 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace plugins/language/{PageComponent,SpellChecking,ThemeValues}.qml plugins/language/onscreenkeyboard-plugin.cpp plugins/sound/PageComponent.qml \ substituteInPlace plugins/language/{PageComponent,SpellChecking,ThemeValues}.qml plugins/language/onscreenkeyboard-plugin.cpp plugins/sound/PageComponent.qml \
--replace-fail 'com.lomiri.keyboard.maliit' 'org.maliit.keyboard.maliit' --replace-fail 'com.lomiri.keyboard.maliit' 'org.maliit.keyboard.maliit'
# Gets list of available localisations from current system, but later drops any language that doesn't cover LSS
# So just give it its own prefix
substituteInPlace plugins/language/language-plugin.cpp \
--replace-fail '/usr/share/locale' '${placeholder "out"}/share/locale'
# Decide which entries should be visible based on the current system # Decide which entries should be visible based on the current system
substituteInPlace plugins/*/*.settings \ substituteInPlace plugins/*/*.settings \
--replace-warn '/etc' '/run/current-system/sw/etc' --replace-warn '/etc' '/run/current-system/sw/etc'