mirror of
https://github.com/eugeny/tabby
synced 2026-08-13 17:41:28 +00:00
handle cwd detection errors on linux
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user