mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-16 01:19:58 +00:00
parent
f84fd07857
commit
1b2236eb90
@ -156,6 +156,9 @@ export class Session {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getWorkingDirectory (): Promise<string> {
|
async getWorkingDirectory (): Promise<string> {
|
||||||
|
if (!this.truePID) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
let lines = (await exec(`lsof -p ${this.truePID} -Fn`))[0].toString().split('\n')
|
let lines = (await exec(`lsof -p ${this.truePID} -Fn`))[0].toString().split('\n')
|
||||||
if (lines[1] === 'fcwd') {
|
if (lines[1] === 'fcwd') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user