[SOLVED] Setting env vars for termux:widget
My shell when starting via termux:widget is not loading something from the environment but I am unaware of what it is, like the alacritty running via termux shortcut (the same script) as in those screenshots
script
script
i3-session
used in both screenshots, it works when started via command line but not widget, how could I fix it?
Thanks in advance!
EDIT: this is not proot/chroot, but vanilla Termux

Solution:Jump to solution
Thank you, but it didn't work... what worked was export SHELL to zsh binary in the script; here is the script i'm using
```bash
#!/data/data/com.termux/files/usr/bin/zsh
...
2 Replies
~/.zshrc is sourced for interactive shell, in this case ~/.zshrc is not sourced, put these variables in ~/.zshenv.
Solution
Thank you, but it didn't work... what worked was export SHELL to zsh binary in the script; here is the script i'm using