mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-09 06:20:22 +08:00
auto-update terminus path in registry (fixes #447)
This commit is contained in:
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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user