Running echo $PATH in the app shows /usr/bin:/usr/sbin:/sbin, while running echo $PATH anywhere else shows /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/Users/username/bin
I'm honestly not sure what could be causing this; they are both the exact same user in both cases, and using sudo to change to root doesn't change the variable.