1
0
mirror of https://github.com/Eugeny/tabby.git synced 2025-08-20 00:01:54 +00:00

auto-update terminus path in registry (fixes )

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

@@ -38,6 +38,16 @@ export class ShellIntegrationService {
) )
this.automatorWorkflowsDestination = path.join(process.env.HOME, 'Library', 'Services') 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> { async isInstalled (): Promise<boolean> {