Skip to content

Commit 97dff9c

Browse files
committed
Try the x-terminal-emulator configured terminal, and xfce4-terminal
1 parent 7a6cd7a commit 97dff9c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/interceptors/fresh-terminal.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ const getTerminalCommand = _.memoize(async (): Promise<SpawnArgs | null> => {
4646
return { command: 'start', args: ['cmd'], options: { shell: true }, skipStartupScripts: true };
4747
}
4848
} else if (process.platform === 'linux') {
49+
if (await commandExists('x-terminal-emulator')) return { command: 'x-terminal-emulator' };
50+
4951
if (GSettings.isAvailable()) {
5052
const gSettingsTerminalKey = GSettings.Key.findById(
5153
'org.gnome.desktop.default-applications.terminal', 'exec'
@@ -57,9 +59,8 @@ const getTerminalCommand = _.memoize(async (): Promise<SpawnArgs | null> => {
5759
}
5860
}
5961

60-
if (await commandExists('xterm')) {
61-
return { command: 'xterm' };
62-
}
62+
if (await commandExists('xfce4-terminal')) return { command: 'xfce4-terminal' };
63+
if (await commandExists('xterm')) return { command: 'xterm' };
6364
} else if (process.platform === 'darwin') {
6465
const terminalExecutables = (await Promise.all(
6566
[

0 commit comments

Comments
 (0)