|
17 | 17 | import { Terminal, RendererType } from 'xterm';
|
18 | 18 | import { FitAddon } from 'xterm-addon-fit';
|
19 | 19 | import { inject, injectable, named, postConstruct } from '@theia/core/shared/inversify';
|
20 |
| -import { ContributionProvider, Disposable, Event, Emitter, ILogger, DisposableCollection, Channel } from '@theia/core'; |
| 20 | +import { ContributionProvider, Disposable, Event, Emitter, ILogger, DisposableCollection, Channel, OS } from '@theia/core'; |
21 | 21 | import { Widget, Message, WebSocketConnectionProvider, StatefulWidget, isFirefox, MessageLoop, KeyCode, codicon, ExtractableWidget } from '@theia/core/lib/browser';
|
22 | 22 | import { isOSX } from '@theia/core/lib/common';
|
23 | 23 | import { WorkspaceService } from '@theia/workspace/lib/browser';
|
@@ -487,8 +487,8 @@ export class TerminalWidgetImpl extends TerminalWidget implements StatefulWidget
|
487 | 487 | const { cols, rows } = this.term;
|
488 | 488 |
|
489 | 489 | const terminalId = await this.shellTerminalServer.create({
|
490 |
| - shell: this.options.shellPath || this.shellPreferences.shell, |
491 |
| - args: this.options.shellArgs || this.shellPreferences.shellArgs, |
| 490 | + shell: this.options.shellPath || this.shellPreferences.shell[OS.type()], |
| 491 | + args: this.options.shellArgs || this.shellPreferences.shellArgs[OS.type()], |
492 | 492 | env: this.options.env,
|
493 | 493 | strictEnv: this.options.strictEnv,
|
494 | 494 | isPseudo: this.options.isPseudoTerminal,
|
|
0 commit comments