I installed the latest Gnome version a couple of weeks ago. Noticed the changes to the terminal. I have a simple script that I created for launching Barrier KVM. It just delays it a few seconds. Changed the script from bash to zsh. It works from command line. Noticed that the path has home/user/.local/bin. But bin is missing in the home directory. So, I created it.
The script did not execute. Maybe a timing issue? That’s when I noticed the path via the terminal had duplicate entries from adding the bin directory. I then deleted the entry and the duplicate remained. Via some searching found the typeset command and removed the entry. But only for the current session.
Then started looking for the source of the path. For example in Ubuntu its the environment file. I looked everywhere and did a text search and could not find it. So the first question is where does ZSH path get set?
Second, what might the resolution be for executing the script if the location is in the path?
For now I set the path in the .zshrc file. No more double entries.
I created a .desktop file in the autostart directory to launch the script as temporary resolution.