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 environment. So the entry in my application menu became something like /usr/bin/my-shell ~/my-ide/bin/start.sh
Now the question
Can I instruct my DM to always use my shell to run all my applications?
Side notes
I use ZSH and Gnome, but a more generic solution would be appreciated.
I've already set my default shell to ZSH, but Gnome doesn't seem to considered that a good enough reason to use that shell for everything.