New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support RVM #3
Comments
Can't you just use |
I think so, but I would love it if OTask had an opinion. For instance, if it looked for a particular gemset or some such convention to know that the user wants to use RVM for the OTask environment. Maybe a |
If I knew more about RVM I'd be happy to play with it, but I only use it in its most basic form. Like I said, I'd be happy to pull any progress you make in that area, but I don't really know where to begin… |
There shouldn't be ANYTHING you need to do to "support" RVM beyond making this into a gem and I'd be happy to help with that if you'd like. You write a gem and it declares its dependencies. Rubygems will install it and tweak your bin script wrappers accordingly and it should all Just Work™. It looks like this has nothing to do with RVM itself at this point. |
I would love an assist on this. I've never made a gem before, but it's a good chance to learn how, if you have the time to explain this scenario. |
The thing that I found to be a problem is that when executing the OTask apple script from launchbar it is not loading the correct ruby ENV. If you execute the apple script from the terminal (see pull request) it will load the defualt RVM that is installed. Also if you wanted to not use the default you could just execute the command to switch RVM versions and then execute the otask shell script. |
@joshsmoore that's a fairly common problem in that applications launched via finder/launchbar don't inherit the same stuff you have set up in terminal. This is because they're inheriting from WindowServer and they get its environment instead. You can remedy some of this via <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CVS_RSH</key>
<string>ssh</string>
<key>PATH</key>
<string>/Users/ryan/Bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/X11R6/bin</string>
</dict>
</plist> |
I forked and will investigate how to do this myself, but I wanted to post it here too. I try to keep my rubies and gemsets all nice and segregated so it would be nice if OTask played nicely with RVM using a gemset and specific Ruby if available.
The text was updated successfully, but these errors were encountered: