RubyMine and environment variables

I had some trouble with RubyMine(on a Mac) and environment variables, e.g. a path to an Oracle configuration file if i had started RubyMine from Spotlight. If i had started RubyMine from the Dock, everything works great. The problem was that RubyMine ignored my environment.plist file (details can you find here http://pivotallabs.com/users/david/blog/articles/968-really-setting-environment-variables-in-rubymine-on-a-mac ). To solve this problem, put your required environment variables into the /etc/launchd.conf configuration file. For example:

setenv TNS_ADMIN /.../oracle/product/10.2.0/db_1/network/admin

This was posted 2 years ago. Notes.