Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minigalaxy crashes on startup due to unsuppoted locale #2

Open
KhalilSantana opened this issue Aug 4, 2020 · 2 comments
Open

Minigalaxy crashes on startup due to unsuppoted locale #2

KhalilSantana opened this issue Aug 4, 2020 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@KhalilSantana
Copy link

Title says it all, but for completeness, Minigalaxy crashes on start if the user has a non en_US.UTF or C as the LANG environment variable.

Stack trace

khalil:~ % flatpak run io.github.sharkwouter.Minigalaxy

(minigalaxy:2): Gtk-WARNING **: 20:12:59.150: Locale not supported by C library.
        Using the fallback 'C' locale.
Traceback (most recent call last):
  File "/app/bin/minigalaxy", line 66, in <module>
    main()
  File "/app/bin/minigalaxy", line 57, in main
    from minigalaxy.ui import Window
  File "/app/lib/python3.7/site-packages/minigalaxy/ui/__init__.py", line 2, in <module>
    from minigalaxy.ui.window import Window
  File "/app/lib/python3.7/site-packages/minigalaxy/ui/window.py", line 5, in <module>
    from minigalaxy.ui.login import Login
  File "/app/lib/python3.7/site-packages/minigalaxy/ui/login.py", line 8, in <module>
    from minigalaxy.translation import _
  File "/app/lib/python3.7/site-packages/minigalaxy/translation.py", line 7, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python3.7/locale.py", line 604, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Workaround

flatpak --user override --env=LANG=C

I'm not sure if this is a flatpak packaging bug (like Discord crashing when the timezone is different), or an upstream (the non-flatpak Minigalaxy) one, if this is the wrong place to report this just say it =p

Fell free to ask any further logs/questions if needed.

@tim77
Copy link
Collaborator

tim77 commented Aug 5, 2020

Bloody bug flathub/net.lutris.Lutris#78 Thanks for reporting.

@tim77 tim77 added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Aug 5, 2020
@hfiguiere
Copy link

You could just add --env=LANG=C in the manifest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants