set Terminus as COMSPEC inside shells - fixes #3643

This commit is contained in:
Eugene Pankov
2021-05-16 19:40:54 +02:00
parent 2f865e70c5
commit 7398d776be
10 changed files with 25 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
export interface BootstrapData {
config: Record<string, any>
executable: string
}

View File

@@ -10,7 +10,7 @@ export function parseArgs (argv: string[], cwd: string): any {
.command('open [directory]', 'open a shell in a directory', {
directory: { type: 'string', 'default': cwd },
})
.command('run [command...]', 'run a command in the terminal', {
.command(['run [command...]', '/k'], 'run a command in the terminal', {
command: { type: 'string' },
})
.command('profile [profileName]', 'open a tab with specified profile', {

View File

@@ -296,6 +296,7 @@ export class Window {
}
this.window.webContents.send('start', {
config: this.configStore,
executable: app.getPath('exe'),
})
})

View File

@@ -54,6 +54,8 @@ async function bootstrap (plugins: PluginInfo[], bootstrapData: BootstrapData, s
ipcRenderer.once('start', async (_$event, bootstrapData: BootstrapData) => {
console.log('Window bootstrap data:', bootstrapData)
;(window as any).bootstrapData = bootstrapData
let plugins = await findPlugins()
if (bootstrapData.config.pluginBlacklist) {
plugins = plugins.filter(x => !bootstrapData.config.pluginBlacklist.includes(x.name))