Skip to content
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

Open
jxpx777 opened this issue Aug 21, 2011 · 7 comments
Open

Support RVM #3

jxpx777 opened this issue Aug 21, 2011 · 7 comments

Comments

@jxpx777
Copy link

jxpx777 commented Aug 21, 2011

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.

@ttscoff
Copy link
Owner

ttscoff commented Aug 21, 2011

Can't you just use /usr/bin/env ruby instead of /usr/bin/ruby? If that works, I'll update the source, let me know.

@jxpx777
Copy link
Author

jxpx777 commented Aug 23, 2011

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 .rvmrc file in the OTask directory? Just spitballing…

@ttscoff
Copy link
Owner

ttscoff commented Aug 23, 2011

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…

@zenspider
Copy link
Collaborator

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.

@ttscoff
Copy link
Owner

ttscoff commented Oct 14, 2011

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.

@joshsmoore
Copy link
Contributor

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.

@zenspider
Copy link
Collaborator

@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 ~/.MacOSX/environment.plist. Here's mine:

<?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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants