mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-22 11:28:00 +00:00
detect git-bash when installed for current user only (closes #161)
This commit is contained in:
@@ -33,6 +33,19 @@ export class GitBashShellProvider extends ShellProvider {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (!gitBashPath) {
|
||||||
|
gitBashPath = await new Promise<string>(resolve => {
|
||||||
|
let reg = new Registry({ hive: Registry.HKCU, key: '\\Software\\GitForWindows' })
|
||||||
|
reg.get('InstallPath', (err, item) => {
|
||||||
|
if (err || !item) {
|
||||||
|
resolve(null)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
resolve(item.value)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if (!gitBashPath) {
|
if (!gitBashPath) {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user