From a931d47c23a8d97911f354cb70c7ed5f3ecff2bf Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Fri, 5 Oct 2018 09:47:04 +0100 Subject: [PATCH] auto-update terminus path in registry (fixes #447) --- terminus-core/src/services/shellIntegration.service.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/terminus-core/src/services/shellIntegration.service.ts b/terminus-core/src/services/shellIntegration.service.ts index 5a47d1ec..f51fe116 100644 --- a/terminus-core/src/services/shellIntegration.service.ts +++ b/terminus-core/src/services/shellIntegration.service.ts @@ -38,6 +38,16 @@ export class ShellIntegrationService { ) this.automatorWorkflowsDestination = path.join(process.env.HOME, 'Library', 'Services') } + this.updatePaths() + } + + async updatePaths (): Promise { + // Update paths in case of an update + if (this.hostApp.platform === Platform.Windows) { + if (await this.isInstalled()) { + await this.install() + } + } } async isInstalled (): Promise {