Closed CharlemagneLasse closed 2 months ago
Hi @CharlemagneLasse,
can you post the output of flatpak config --list
?
$ flatpak config --list
languages: *unset* (default: en)
extra-languages: *unset*
No idea what this is - it doesn't seem to be documented here: https://flathub.org/apps/com.prusa3d.PrusaSlicer or https://flathub.org/setup/Debian
flatpak config allow you to configure flatpak apps locale, it is documented here: https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-config
you can configure locale that want to use in your flatpak app with
flatpak config --set languages "LOCLAE_SEPARATED_BY_SEMICOLON"
and after install it with
flatpak update
for example if you want to install English and German languages you should do
flatpak config --set languages "en;de"
flatpak update
It should still initialize using the fallback locale, which is puzzling since the fallback is hardcoded.
You can find the relevant code here: https://github.com/flathub/com.prusa3d.PrusaSlicer/blob/85d844953214bcb24ad82c2c639444f28c0c8a73/entrypoint#L21C61-L21C93
I suspect that the checking mechanism is not functioning correctly, and we may need to consider removing the line: [ -n "$LANG" ] && export LC_ALL=$LANG ||
and force the hardcoded fallback
@CharlemagneLasse
please keep an eye on this build in: https://github.com/flathub/com.prusa3d.PrusaSlicer/pull/124 When available, install and let me know if that works for you.
flatpak config allow you to configure flatpak apps locale, it is documented here: https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-config
you can configure locale that want to use in your flatpak app with
flatpak config --set languages "LOCLAE_SEPARATED_BY_SEMICOLON"
and after install it with
flatpak update
for example if you want to install English and German languages you should do
flatpak config --set languages "en;de" flatpak update
That is the right way, but it is a bad experience for regular users. The main reason of the entrypoint script is to catch this problem and allow the application to start nevertheless, even if it is in English. I dont remember when the line [ -n "$LANG" ] && export LC_ALL=$LANG ||
was introduced, but I do believe it wasn't there initially.
That line has always been present, but it doesn’t consistently work in all scenarios.
@eliadevito I reworked the locale check, maybe you can review it and run it after it builds? https://github.com/flathub/com.prusa3d.PrusaSlicer/pull/124
Build 150301 successful To test this build, install it from the testing repository:
flatpak install --user https://dl.flathub.org/build-repo/133392/com.prusa3d.PrusaSlicer.flatpakref
@xarbit Thank you, it is now finally starting up for me
The appimage is working perfectly fine but the flatpak application is refusing to start up
It seems like the locales were not installed in the flatpak container:
And on my actual system, I actually see the correct locales:
So it seems like the workaround from #27 cannot work because it tries to use
LANG=de_DE.UTF-8
as a workaround but doesn't have this locale installed at all.