Getting launchy gem to work on cloud9


#1

has anyone managed to get launchy to work on cloud9?

I get:

  Scenario: Creating category            # features/create_category.feature:6
    Given the blog is set up             # features/step_definitions/web_steps.rb:34
    And I am logged into the admin panel # features/step_definitions/web_steps.rb:46
    When I am on the admin page          # features/step_definitions/web_steps.rb:73
xprop:  unable to open display ''
xprop:  unable to open display ''
    And show me the page                 # features/step_definitions/web_steps.rb:281
      Unable to find a browser command. If this is unexpected, Please rerun with environment variable LAUNCHY_DEBUG=true or the '-d' commandline option and file a bug at https://github.com/copiousfreetime/launchy/issues/new (Launchy::CommandNotFoundError)
      ./features/step_definitions/web_steps.rb:282:in `/^show me the page$/'
      features/create_category.feature:11:in `And show me the page'

feels like it might work if we new the correct browser command for c9. I’ve posted to the launchy folks as well but I can’t link there due to your link limit :frowning:


#2

the solution was suggested here: https://github.com/copiousfreetime/launchy/issues/78#issuecomment-252894308 i.e. install iceweasel - I can confirm it works for me