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

Issue 81: default to en_US locale when defaults call fails #82

Merged
merged 8 commits into from
Jun 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/services/helperService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ export class HelperService {
});
cmd.on("close", code => {
if (code !== 0) {
LogService.error(`uname exited with code ${code}`, "CoreService", true);
return reject(code);
cjlapao marked this conversation as resolved.
Show resolved Hide resolved
LogService.error(`reading defaults exited with code ${code}, could not retrieve AppleLanguages`, "CoreService", true);
LogService.warning(`Defaulting to en_US`, "CoreService", true);
return resolve("en_US");
}
try {
const result = stdout
Expand Down
Loading