Can I change the shell used to run GUI applications from a Desktop Manager?

view story

http://unix.stackexchange.com – A bit of background I'm a developer and I install most of my tools in my home folder. So my shell's rc file is full of JAVA_HOME, GROOVY_HOME, MAVEN_HOME, ... variables. To expose all these environment variables to my GUI applications (think my IDE) I used to write a shell script by first defining those variables again and then running the application; and finally adding a launcher in my application menu to run that script. One day I realized that I could just run my application via my shell. As all the variables defined in the shell's rc files were going to be set in the application environ (HowTos)