git: 52e661c90e93 - main - x11/kitty: fix pass_selection_to_program action
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Dec 2021 07:04:21 UTC
The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=52e661c90e93046efd4799dbc6aedfbe0d9ecddb commit 52e661c90e93046efd4799dbc6aedfbe0d9ecddb Author: Jose G. Juanino <jjuanino@gmail.com> AuthorDate: 2021-12-13 07:01:45 +0000 Commit: Hiroki Tagato <tagattie@FreeBSD.org> CommitDate: 2021-12-13 07:03:59 +0000 x11/kitty: fix pass_selection_to_program action PR: 259765 Approved by: Alexis Praga <alexis.praga@free.fr> (maintainer) --- x11/kitty/Makefile | 1 + x11/kitty/files/patch-kitty_child.py | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/x11/kitty/Makefile b/x11/kitty/Makefile index fefa484c94a8..dd622317752c 100644 --- a/x11/kitty/Makefile +++ b/x11/kitty/Makefile @@ -1,6 +1,7 @@ PORTNAME= kitty DISTVERSIONPREFIX= v DISTVERSION= 0.23.1 +PORTREVISION= 1 CATEGORIES= x11 MAINTAINER= alexis.praga@free.fr diff --git a/x11/kitty/files/patch-kitty_child.py b/x11/kitty/files/patch-kitty_child.py new file mode 100644 index 000000000000..d55816ecc8a4 --- /dev/null +++ b/x11/kitty/files/patch-kitty_child.py @@ -0,0 +1,11 @@ +--- 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 = '/proc/{}/cwd'.format(pid) ++ 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: