mirror of
https://github.com/Eugeny/tabby.git
synced 2025-02-11 14:41:13 +08:00
handle cwd detection errors on linux
This commit is contained in:
parent
59ce7eeee6
commit
f9b7f97863
@ -281,7 +281,7 @@ export class Session extends BaseSession {
|
||||
}
|
||||
if (process.platform === 'linux') {
|
||||
try {
|
||||
return fs.readlink(`/proc/${this.truePID}/cwd`)
|
||||
return await fs.readlink(`/proc/${this.truePID}/cwd`)
|
||||
} catch (exc) {
|
||||
console.error(exc)
|
||||
return null
|
||||
|
Loading…
Reference in New Issue
Block a user