Won't start if locale env var LC_NUMERIC isn't set to "C"

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. :slight_smile:

I’m pretty sure it’s best to be fixed in the code, since software itself requires LC_NUMERIC to be set to “C”, but meanwhile could you please suggest any workaround to be able to start the app from Spotlight ?

I have these lines run on login:

launchctl setenv LANG en_US
launchctl setenv LC_CTYPE en_US.UTF-8

These are therefore used for the whole session.
Is there any way to set specific env var for a single application?

I thought it was possible with app’s Info.plist, but didn’t find a way to do it.
Any suggestions, please ?

How are you trying to launch it from Spotlight?

This works for me:

  • Command-Space (activate Spotlight)
  • Type: Plex.app
  • Enter

Including for reference -

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

Thank you for including the reference, I obviously failed to find it myself :frowning:
This thread is actually a full duplicate of that one.
And like that thread’s OP, I have set my environment globally for the whole session and would like to stay it that way. Globally means it is set for apps launched via Spotlight (Command-Space, and so on…).
Like @matelios_plex_tv in that thread, I think it should be fixed in Plex code, since it won’t run otherwise.
Is there any way to draw developers’ attention to this quite tiny and easy fix ?

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