mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
make comspec setting optional - fixes #4143
This commit is contained in:
@@ -15,6 +15,7 @@ export class TerminalConfigProvider extends ConfigProvider {
|
||||
showBuiltinProfiles: true,
|
||||
environment: {},
|
||||
profiles: [],
|
||||
setComSpec: false,
|
||||
},
|
||||
}
|
||||
|
||||
|
@@ -122,7 +122,13 @@ export class Session extends BaseSession {
|
||||
...this.config.store.terminal.environment || {},
|
||||
}
|
||||
|
||||
if (this.hostApp.platform === Platform.Windows) {
|
||||
if (this.hostApp.platform === Platform.Windows && this.config.store.terminal.setComSpec) {
|
||||
for (const k of Object.keys(env)) {
|
||||
if (k.toUpperCase() === 'COMSPEC') {
|
||||
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
||||
delete env[k]
|
||||
}
|
||||
}
|
||||
env.COMSPEC = this.bootstrapData.executable
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user