Did some reading about .bashrc & .profile & /etc/bash.bashrc & /etc/profile - the 2nd should invoke the 1st and the 4th should invoke the 3rd, as well as the scripts in the directory /etc/profile.d. Doesn’t seem to happen, though.
I copied /apps-bin-path.sh to my homedir, added some test lines, wrote a small script there to invoke it and printed some results: apps-bin-path.sh DOES expand my $PATH, but once it has finished the old $PATH (w/o /snap/bin added) is effective. Could be as to be expected, environment duplication for scripts and clean up on exit?, but I’m not a Linux pro (yet). But I proved that at least the ‘if’ statement in apps-bin-path.sh was executed.
Then made similar changes to /etc/profile.d/apps-bin-path.sh and rebooted my system. It seems that it is NOT invoked, because the test output generated in the first test did not come up in this second test.
Are there Linux pros out there that can give us a clue?
BTW: Should I have posted this problem at How to fix snap binaries not found ?
Steijn