Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zellij CLI new-tab fails to load PATH (And presumable other environment variables) when pane command runs with a blocking operation. #3924

Open
philocalyst opened this issue Jan 10, 2025 · 0 comments

Comments

@philocalyst
Copy link

Currently, I run into this problem with neomutt, using this layout:

layout {
pane size=1 borderless=true {
                    plugin location="https://github.com/dj95/zjstatus/releases/latest/download/zjstatus.wasm" {
            hide_frame_for_single_pane "true"

            format_left  "{mode}#[fg=#89B4FA,bg=#181825,bold] {session}#[bg=#181825] {tabs}"
            format_right "{datetime}"
            format_space "#[bg=#181825]"

            mode_normal          "#[bg=#89B4FA] "
            mode_locked            "#[bg=#ffc387] "
            mode_default_to_mode "locked"

            tab_normal               "#[fg=#6C7086,bg=#181825] {index} {name} {fullscreen_indicator}{sync_indicator}{floating_indicator}"
            tab_active               "#[fg=#9399B2,bg=#181825,bold,italic] {index} {name} {fullscreen_indicator}{sync_indicator}{floating_indicator}"
            tab_fullscreen_indicator "□ "
            tab_sync_indicator       "  "
            tab_floating_indicator   "󰉈 "


            datetime          "#[fg=#9399B2,bg=#181825] {format} "
            datetime_format   "%H:%M"
            datetime_timezone "EST"
        }
    }

  pane command="/opt/homebrew/bin/neomutt"
}

I exported my path variables to BASH, and got nothing there either.

My (known) assumptions here are:

  • This would not happen if I ran a script that called PATH execs
  • Neomutt is not at fault, as it works fine when run from a standard session
  • That neomutt is "freezing" the loading of these variables.
  • Neomutt is run in the default shell (Fish in my case)

One concern is that my fish preexec script does not run on this.

Willing to do any extra work required here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant