Player on macOS does not start with evironment variable LC_NUMERIC="en_US.UTF-8"

Player Version#: 1.37.0.2706-5b2cfe50

user@macbook ~ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=

user@macbook ~ Applications/Plex.app/Contents/MacOS/Plex
Non-C locale detected. This is not supported.
Call 'setlocale(LC_NUMERIC, "C");' in your code.

user@macbook ~ LC_NUMERIC=C Applications/Plex.app/Contents/MacOS/Plex
# runs as expected

It seems it is caused by python-mpv.
Pls fix by code or Info.plist environment variable.

Thanks!

Is there an solution to this topic? I have the same problem, plex app is not starting anymore (Mac OSX 10.15.7 Catalina).
THX for help!

Out of curiosity, why are you launching the GUI Plex application from the CLI?

The default locale is C when launching from the Dock/Finder.

Terminal.app is what’s changing it. One option is to disable this in Terminal.app:

TerminalPreferencesProfilesAdvanced
uncheck Set local environment variables on startup

Or unset LOCALE; open /Applications/Plex.app.

I just used CLI to investigate the issue. Icon stopped to work for me because I changed system locale a time ago via .zprofile for both CLI and GUI apps:

export LANG=en_US.UTF-8
launchctl setenv LANG en_US.UTF-8

I guess python-mpv was integrated recently and plex does not start via icon anymore.
It is annoying (another app requires en_US.UTF-8) :slight_smile:

offtopic: I use Alacritty instead Terminal.app

you need to find what sets your system environment variables. via terminal you can try one of:

launchctl unsetenv LANG
launchctl setenv LC_NUMERIC C

but I do not now your situation so I do not advise how to set it permanent.

I disabled my custom environment changes and I switch locale only when I need… so Plex is not affected then. Anyway it should be fixed in Plex

2 Likes

Thank you very much for your tipps but it didn’t work .-(

I’ve recently created a duplicate of this thread (Pardon!) and, just for the sake of completeness, I’ll leave a link here.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.