auto-update terminus path in registry (fixes #447)

This commit is contained in:
Eugene Pankov 2018-10-05 09:47:04 +01:00
parent 1ae027f17c
commit a931d47c23

View File

@ -38,6 +38,16 @@ export class ShellIntegrationService {
)
this.automatorWorkflowsDestination = path.join(process.env.HOME, 'Library', 'Services')
}
this.updatePaths()
}
async updatePaths (): Promise<void> {
// Update paths in case of an update
if (this.hostApp.platform === Platform.Windows) {
if (await this.isInstalled()) {
await this.install()
}
}
}
async isInstalled (): Promise<boolean> {