Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

REALLY setting environment variables in RubyMine on a Mac

David Goudreau
Friday, August 7, 2009

In my previous article I talked about using environment.plist to set environment variables in RubyMine. Well, it turns out that environment.plist doesn’t always work. Specifically, if you start RubyMine from Spotlight RubyMine has a different parent process that DOESN’T take into account the environment.plist file. It DOES work if you open RubyMine using the Dock or Quicksilver, though. Who would have guessed? This easily killed a day or so of troubleshooting on my current project.
So, to really solve this problem, it turns out you have to put your environment variables in /etc/launchd.conf like this:

setenv M2_HOME /opt/maven/2.0.9

For more details, check out this blog post and this blog post.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

One comment

  1. Roman Chernyatchik says:

    David, thanks a lot for this tip!

    August 9, 2009 at 6:39 am

Add New Comment Cancel reply

Your email address will not be published.

David Goudreau

David Goudreau
San Francisco

Recent Posts

  • Standup 4/1/2011: April Fool's edition
  • Standup 3/31/2011: Process.spawn pwns all yer codez!
  • Standup 3/29/2011: Git it!
Subscribe to David's Feed

Author Topics

agile (14)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >