1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 14:22:37 +03:00
wezterm/docs/config/lua/wezterm.procinfo/executable_path_for_pid.md
2023-03-20 22:54:27 -07:00

365 B

wezterm.procinfo.executable_path_for_pid(pid)

{{since('20220807-113146-c2fee766')}}

Returns the path to the executable image for the specified process id.

This function may return nil if it was unable to return the info.

> wezterm.procinfo.executable_path_for_pid(wezterm.procinfo.pid())
"/home/wez/wez-personal/wezterm/target/debug/wezterm-gui"