1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-24 19:13:31 +03:00
This commit is contained in:
Eugene Pankov 2017-08-30 11:11:28 +02:00
parent f84fd07857
commit 1b2236eb90

View File

@ -156,6 +156,9 @@ export class Session {
}
async getWorkingDirectory (): Promise<string> {
if (!this.truePID) {
return null
}
if (process.platform === 'darwin') {
let lines = (await exec(`lsof -p ${this.truePID} -Fn`))[0].toString().split('\n')
if (lines[1] === 'fcwd') {