Closed mikesmithgh closed 10 months ago
kitty @ ls --all-env-vars
Hey @kovidgoyal I still see the issue on v0.30.1
It is not specific to kitty @ ls
, I first noticed it in a kitten. For example,
from typing import List
from kitty.boss import Boss
from kittens.tui.handler import result_handler
def main():
raise SystemExit('Must be run as kitten kitty_scroll_prompt')
@result_handler(type_of_input=None, no_ui=True, has_ready_notification=False)
def handle_result(args: List[str],
result: str,
target_window_id: int,
boss: Boss) -> None:
w = boss.window_id_map.get(target_window_id)
if w is not None:
print(w.child.environ) # this prints an empty dictionary
Doesnt reproduce for me, probably something macOS specific in that case. I'll look into it when I have a moment.
Ah right this will be because the shell is launched via login now because macOS doesnt run login when logging in, and we cant read the env of login. Sigh, macOS really has the worst design on the planet.
Thanks! I confirmed it works on latest 👍
Describe the bug Kitty windows have empty environment variables after upgrading from v0.30.0 to v0.30.1
To Reproduce Steps to reproduce the behavior:
kitty @ ls | jq .[].tabs[].windows[].env
Screenshots v0.30.1 is on the left, v0.30.0 is on the right
Environment details
Additional context