1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-19 19:50:31 -04:00
ports/x11/kitty/files/patch-kitty_child.py
2022-01-12 06:39:50 -05:00

11 lines
433 B
Python

--- kitty/child.py.orig 2021-11-10 21:33:51 UTC
+++ kitty/child.py
@@ -45,7 +45,7 @@ else:
return list(filter(None, f.read().decode('utf-8').split('\0')))
def cwd_of_process(pid: int) -> str:
- ans = f'/proc/{pid}/cwd'
+ ans = subprocess.run(["pwdx", pid], capture_output=True).stdout.split()[1].decode("utf-8")
return os.path.realpath(ans)
def _environ_of_process(pid: int) -> str: