使用Launchy gem会出错

时间:2017-04-05 19:01:15

标签: ruby cross-browser rubygems

我尝试使用Launchy gem在我的CLI App中打开浏览器。我收到以下错误消息。

  xprop: unable to open display '' 
  /usr/local/rvm/gems/ruby-2.3.1/gems/launchy-2.4.3/lib/launchy/applications/browser.rb:63:in `browser_cmdline': Unable to find a browser command. If th
  is is unexpected, Please rerun with environment variable LAUNCHY_DEBUG=true or the '-d' commandline option and file a bug at https://github.com/copiou
  sfreetime/launchy/issues/new (Launchy::CommandNotFoundError) 
  from /usr/local/rvm/gems/ruby-2.3.1/gems/launchy-2.4.3/lib/launchy/applications/browser.rb:67:in `cmd_and_args' 
  from /usr/local/rvm/gems/ruby-2.3.1/gems/launchy-2.4.3/lib/launchy/applications/browser.rb:78:in `open' 
  from /usr/local/rvm/gems/ruby-2.3.1/gems/launchy-2.4.3/lib/launchy.rb:29:in `open' 
  from /home/himachhag-45739/code/popular-deals-from-slickdeals.net-cli/lib/popular_deals/cli.rb:49:in `open_deal_in_browser' 
  from /home/himachhag-45739/code/popular-deals-from-slickdeals.net-cli/lib/popular_deals/cli.rb:36:in `menu' 
  from /home/himachhag-45739/code/popular-deals-from-slickdeals.net-cli/lib/popular_deals/cli.rb:8:in `call' 
  from ./bin/popular-deals:10:in `<main>'

有谁知道任何可能的解决方案?

0 个答案:

没有答案