Created attachment 229418 [details] patch to fix pass_selection_to_program action See https://sw.kovidgoyal.net/kitty/actions/#pass-selection-to-program Currently, the action pass_selection_to_program does not work in FreeBSD. The cause is that /proc filesystem in FreeBSD do not implement cwd file (current working directory). As workaround, I propose to substitute the action of read /proc/<pid>/cwd file by running pwdx command (see man procstat).
A commit in branch main references this bug: 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 (new) | 11 +++++++++++ 2 files changed, 12 insertions(+)
Committed, thanks!