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!
ph2
November 23, 2021, 8:30pm
2
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!
Volts
November 24, 2021, 4:55am
3
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:
Terminal → Preferences → Profiles → Advanced
uncheck Set local environment variables on startup
Or unset LOCALE; open /Applications/Plex.app.
Volts:
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:
Terminal → Preferences → Profiles → Advanced
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)
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
ph2
November 25, 2021, 6:24pm
6
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.
Player Version#: 1.40.1.2823-6f60f3a7
> locale
LANG="en_US"
LC_COLLATE="en_US"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US"
LC_MONETARY="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_ALL=
> /Applications/Plex.app/Contents/MacOS/Plex
Non-C locale detected. This is not supported.
Call 'setlocale(LC_NUMERIC, "C");' in your code.
Starts up fine with > LC_NUMERIC=C /Applications/Plex.app/Contents/MacOS/Plex
Seems like automatic advice is quite good.
1 Like
system
Closed
May 7, 2022, 8:20pm
8
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.