File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 5
5
- ' 10'
6
6
- ' 8'
7
7
before_install :
8
- - sudo apt-get install p7zip-full
8
+ - sudo apt-get install p7zip-full xterm
9
9
install :
10
10
- npm install --global npm@4
11
11
- npm install
Original file line number Diff line number Diff line change @@ -30,12 +30,15 @@ const getTerminalCommand = _.memoize(async (): Promise<SpawnArgs | null> => {
30
30
}
31
31
} else if ( process . platform === 'linux' ) {
32
32
if ( GSettings . isAvailable ( ) ) {
33
- const defaultTerminal = GSettings . Key . findById (
33
+ const gSettingsTerminalKey = GSettings . Key . findById (
34
34
'org.gnome.desktop.default-applications.terminal' , 'exec'
35
- ) . getValue ( ) ;
35
+ ) ;
36
36
37
+ const defaultTerminal = gSettingsTerminalKey && gSettingsTerminalKey . getValue ( ) ;
37
38
if ( defaultTerminal ) return { command : defaultTerminal } ;
38
- } else if ( await commandExists ( 'xterm' ) . catch ( ( ) => false ) ) {
39
+ }
40
+
41
+ if ( await commandExists ( 'xterm' ) . catch ( ( ) => false ) ) {
39
42
return { command : 'xterm' } ;
40
43
}
41
44
} else if ( process . platform === 'darwin' ) {
You can’t perform that action at this time.
0 commit comments