Environment variables not passed to custom action commands
When executing custom action commands, Thunar does not pass the environment variables to the child process. In my case, I have a wrapper for launching a terminal at ~/.local/bin/terminal
. I want to create a custom action that spawns a terminal in the CWD.
What should have been as simple as
terminal -d %f
now needs to be
zsh -l -c "terminal -d %f"
to work.
This is because Thunar does not pass environment variables like $ZDOTDIR
which determine the behaviour of my shell.
Additionally, now I have to hardcode the shell in my command as well, which I would like to avoid. The behaviour that I expect here is that Thunar passes through all the environment variables to the child process which it has access to.