broot icon indicating copy to clipboard operation
broot copied to clipboard

br can't be launched in a kitty startup session

Open Schweber opened this issue 2 years ago • 3 comments

I would like to define a kitty startup session that launches br on startup. However, if i add launch br then kitty fails with

Failed to launch child: br
With error: No such file or directory
Press Enter or Esc to exit

If i add launch broot it works but then i can't use :cd etc. After the window is open i can run br and it works as usual but that's not what i'm trying to achieve.

Does someone know a solution to this?

Schweber avatar Nov 16 '23 17:11 Schweber

At first sight, kitty sessions don't seem to see the functions defined in your bash session and the launch command seems to be restricted to launching executables. I have no idea how this works. Maybe ask on the kitty project ?

Canop avatar Nov 16 '23 17:11 Canop

Will do, thank you for the quick response and your awesome programs!

Schweber avatar Nov 16 '23 17:11 Schweber

The initial solution in my case is launch --hold fish -ilc br. Without -il it also starts but the maintainer of kitty suggested to add it.

However, changing the directory with broot still doesn't work. As soon as broot is exited, the shell also exits and is restarted with the original cwd. I don't understand the reason.

Maybe someone knows how to make it work.

Schweber avatar Nov 17 '23 06:11 Schweber

I close this as it's probably related to kitty.

Schweber avatar Mar 17 '24 08:03 Schweber