1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-22 02:19:55 +03:00

possibly npm $PATH (fixes #305, fixes #4)

This commit is contained in:
Eugene Pankov 2018-03-18 18:59:58 +01:00
parent ab3c49b9b2
commit 4f44087989
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -45,7 +45,7 @@ export class PluginManagerService {
return
}
if (this.hostApp.platform !== Platform.Windows) {
let searchPaths = (await exec('bash -c -l "echo $PATH"'))[0].toString().trim().split(':')
let searchPaths = (await exec('$SHELL -c -i \'echo $PATH\''))[0].toString().trim().split(':')
for (let searchPath of searchPaths) {
if (await fs.exists(path.join(searchPath, 'npm'))) {
this.logger.debug('Found npm in', searchPath)