-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Mac: opening a packaged app from Finder uses a different locale than opening from the terminal #558
Comments
My inclination is that this is either an Electron or a general OSX issue. There's nothing in Electron Packager specifically that would limit access to the locale depending on the method of opening the app. |
Thanks. I also thought that, but I see different results when running I realised that I can also repro the issue by opening bundles with The Electron Packager-built app reproduces the bug:
Electron.app does not:
|
The only thing I can think of is that something in one of the |
It occurs to me that At any rate, no one's stepped forward to look at this, so my opinion is still the same as my earlier comment. As a result, I'm closing this due to lack of data, but if there's new evidence, I will be happy to consider reopening. |
Running a packaged app on macOS 10.12.2, with System language set to en-GB:
app.getLocale()
returnsen-GB
.app.getLocale()
returns an empty String.Date#toLocaleString
is also affected (Terminal:"14/01/2017, 00:20:36"
; Finder:"1/14/2017, 00:20:36"
This was raised in microsoft/vscode#16261. I'm not sure if it's an electron or packaging issue, but I don't know how to repro on vanilla Electron so I'm raising here first.
N.B. vscode uses https://github.com/joaomoreno/gulp-atom-electron to package for Mac.
Console output when you run electron-packager with the environment variable
DEBUG=electron-packager
. Please include the stack trace if one exists.What command line arguments are you passing? Alternatively, if you are using the API, what
parameters are you passing to the
packager()
function?Test case
This clone of electron-quick-start has a dialog window showing the issue.
The text was updated successfully, but these errors were encountered: