Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I used the instructions in the answer to this question but it won't open when I click those links in my browser. I can go to terminal, and type xdg-open and then paste the txmt link, and it will work, so I know my script (a ruby script @ usr/bin/local) is working correctly and the protocol handler is set right in gconf.

Any suggestions?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I am using RVM, ruby version manager. My script to load gedit and parse the txmt handler is written in Ruby. In whatever capacity xdg-open is launched by Chromium, it does not have access to the currently active ruby in RVM via the #!/usr/bin/env ruby hashbang. Research into RVM showed that there is a rvm-auto-ruby which points to the currently active --system ruby in RVM.

Running which rvm-auto-ruby gives me /home/jake/.rvm/bin/rvm-auto-ruby so in gconf-editor, I put this for the handler application:

/home/jake/.rvm/bin/rvm-auto-ruby /usr/local/bin/txmt_handler "%s"

And now it works!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.