mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-23 04:49:59 +00: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') {
|
if (process.platform === 'linux') {
|
||||||
try {
|
try {
|
||||||
return fs.readlink(`/proc/${this.truePID}/cwd`)
|
return await fs.readlink(`/proc/${this.truePID}/cwd`)
|
||||||
} catch (exc) {
|
} catch (exc) {
|
||||||
console.error(exc)
|
console.error(exc)
|
||||||
return null
|
return null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user