1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-26 03:51:49 +03:00

build fix

This commit is contained in:
Eugene Pankov 2021-04-16 21:18:23 +02:00
parent 6d89d7a8d0
commit 7ab3238617
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -167,9 +167,7 @@ export class Session extends BaseSession {
} }
if (!pty) { if (!pty) {
// filter out empty env const env = {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { '': _, ...env } = {
...process.env, ...process.env,
TERM: 'xterm-256color', TERM: 'xterm-256color',
TERM_PROGRAM: 'Terminus', TERM_PROGRAM: 'Terminus',
@ -177,6 +175,8 @@ export class Session extends BaseSession {
...this.config.store.terminal.environment || {}, ...this.config.store.terminal.environment || {},
} }
delete env['']
if (process.platform === 'darwin' && !process.env.LC_ALL) { if (process.platform === 'darwin' && !process.env.LC_ALL) {
const locale = process.env.LC_CTYPE ?? 'en_US.UTF-8' const locale = process.env.LC_CTYPE ?? 'en_US.UTF-8'
Object.assign(env, { Object.assign(env, {