Bug 259765 - x11/kitty: fix pass_selection_to_program action
Summary: x11/kitty: fix pass_selection_to_program action
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Tagato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-10 21:54 UTC by Jose G. Juanino
Modified: 2021-12-13 07:05 UTC (History)
2 users (show)

See Also:
alexis.praga: maintainer-feedback+


Attachments
patch to fix pass_selection_to_program action (1.39 KB, patch)
2021-11-10 21:54 UTC, Jose G. Juanino
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jose G. Juanino 2021-11-10 21:54:45 UTC
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).
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-12-13 07:04:54 UTC
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(+)
Comment 2 Hiroki Tagato freebsd_committer freebsd_triage 2021-12-13 07:05:24 UTC
Committed, thanks!