wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.72k stars 793 forks source link

run_child_process() #5777

Closed chilljalapeno closed 3 months ago

chilljalapeno commented 4 months ago

What Operating System(s) are you seeing this problem on?

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20240203-110809-5046fc22

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

running wezterm.run_child_process() works only if I open wezterm from another terminal, but if I open it from macos with spotlight it does not

To Reproduce

No response

Configuration

{
    key = "2",
    mods = "CMD",
    action = wezterm.action_callback(function(window, pane)
        wezterm.run_child_process({
            "zellij",
            "-s",
            "joyous-triceratops",
            "action",
            "go-to-tab",
            "2",
        })
    end),
},

Expected Behavior

It is weird because if I run wezterm from another terminal it works perfectly fine, but not if I open it from spotlight.

Logs

No response

Anything else?

No response

wez commented 3 months ago

https://wezfurlong.org/wezterm/faq.html#im-on-macos-and-wezterm-cannot-find-things-in-my-path

github-actions[bot] commented 2 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.