Skip to content

Commit bbe16a9

Browse files
committed
added changes
1 parent dc848fd commit bbe16a9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/cli-tools/src/getDefaultUserTerminal.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import os from 'os';
22

33
const getDefaultUserTerminal = (): string | undefined => {
4-
const {REACT_TERMINAL, TERM_PROGRAM, TERM} = process.env;
4+
const {REACT_TERMINAL, TERM_PROGRAM, TERM, SHELL} = process.env;
55

66
if (REACT_TERMINAL) {
77
return REACT_TERMINAL;
88
}
9+
10+
if (os.platform() === 'linux') {
11+
return SHELL;
12+
}
913

1014
if (os.platform() === 'darwin') {
1115
return TERM_PROGRAM;

packages/cli-tools/src/startServerInNewWindow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function startServerInNewWindow(
109109
}
110110
if (process.platform === 'linux') {
111111
try {
112-
return execa.sync(terminal, ['-e', `sh ${launchPackagerScript}`], {
112+
return execa(terminal, ['-e', `sh ${launchPackagerScript}`], {
113113
...procConfig,
114114
detached: true,
115115
});

0 commit comments

Comments
 (0)