diff --git a/terminus-core/src/services/shellIntegration.service.ts b/terminus-core/src/services/shellIntegration.service.ts index 0c85362d9ebcfd97cddf92c3dcb32137bdeb587e..5d49ceeb9e5811cca01e7f1276b3efe2a5793f29 100644 --- a/terminus-core/src/services/shellIntegration.service.ts +++ b/terminus-core/src/services/shellIntegration.service.ts @@ -18,11 +18,18 @@ export class ShellIntegrationService { private automatorWorkflowsDestination: string private registryKeys = [ { - path: 'Software\\Classes\\Directory\\Background\\shell\\Open Terminus here', + path: 'Software\\Classes\\Directory\\Background\\shell\\Terminus', + value: 'Open Terminus here', command: 'open "%V"', }, { - path: 'Software\\Classes\\*\\shell\\Paste path into Terminus', + path: 'SOFTWARE\\Classes\\Directory\\shell\\Terminus', + value: 'Open Terminus here', + command: 'open "%V"', + }, + { + path: 'Software\\Classes\\*\\shell\\Terminus', + value: 'Paste path into Terminus', command: 'paste "%V"', }, ] @@ -61,6 +68,7 @@ export class ShellIntegrationService { for (const registryKey of this.registryKeys) { wnr.createRegistryKey(wnr.HK.CU, registryKey.path) wnr.createRegistryKey(wnr.HK.CU, registryKey.path + '\\command') + wnr.setRegistryValue(wnr.HK.CU, registryKey.path, '', wnr.REG.SZ, registryKey.value) wnr.setRegistryValue(wnr.HK.CU, registryKey.path, 'Icon', wnr.REG.SZ, exe) wnr.setRegistryValue(wnr.HK.CU, registryKey.path + '\\command', '', wnr.REG.SZ, exe + ' ' + registryKey.command) }