My company provides an eclipse based development environment which needs some environment variables setting up for the underlying toolchain so multiple versions can be insta
As pointed out in https://github.com/atom/atom/issues/7045, the environment variables can be loaded automatically, without explicit source ~/.bash_profile
by using
#!/usr/bin/env bash -l
instead of
#!/bin/bash
source ~/.bash_profile
after that, in both cases, follows
exec "`dirname \"$0\"`/eclipse" $@
It works great for me, thanks for all previous work.