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 55- ' 10'
66- ' 8'
77before_install :
8- - sudo apt-get install p7zip-full
8+ - sudo apt-get install p7zip-full xterm
99install :
1010- npm install --global npm@4
1111- npm install
Original file line number Diff line number Diff line change @@ -30,12 +30,15 @@ const getTerminalCommand = _.memoize(async (): Promise<SpawnArgs | null> => {
3030 }
3131 } else if ( process . platform === 'linux' ) {
3232 if ( GSettings . isAvailable ( ) ) {
33- const defaultTerminal = GSettings . Key . findById (
33+ const gSettingsTerminalKey = GSettings . Key . findById (
3434 'org.gnome.desktop.default-applications.terminal' , 'exec'
35- ) . getValue ( ) ;
35+ ) ;
3636
37+ const defaultTerminal = gSettingsTerminalKey && gSettingsTerminalKey . getValue ( ) ;
3738 if ( defaultTerminal ) return { command : defaultTerminal } ;
38- } else if ( await commandExists ( 'xterm' ) . catch ( ( ) => false ) ) {
39+ }
40+
41+ if ( await commandExists ( 'xterm' ) . catch ( ( ) => false ) ) {
3942 return { command : 'xterm' } ;
4043 }
4144 } else if ( process . platform === 'darwin' ) {
You can’t perform that action at this time.
0 commit comments