mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 09:27:24 +00:00
parent
ab3c49b9b2
commit
4f44087989
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue