ruby on rails - Capybara save_and_open_page ubuntu -


i running ubunut 13.04, , rubymine 6.0.3

my problem launchy gem isn't opening browser.

i debuged capybara save_and_open_page , executed

launchy.open(file_name,{debug:true}) 

the html page saved, browser doesn't launch.

this debug result

launchy_debug: uri parsing pass 1 : /home/dave/my_i/tmp/capybara/capybara-201401200000077817027890.html -> {:scheme=>nil, :user=>nil, :password=>nil, :host=>nil, :port=>nil, :path=>"/home/dave/my_i/tmp/capybara/capybara-201401200000077817027890.html", :query=>nil, :fragment=>nil} launchy_debug: uri parsing pass 2 : /home/dave/my_i/tmp/capybara/capybara-201401200000077817027890.html -> {:scheme=>nil, :user=>nil, :password=>nil, :host=>nil, :port=>nil, :path=>"/home/dave/my_i/tmp/capybara/capybara-201401200000077817027890.html", :query=>nil, :fragment=>nil} launchy_debug: checking if class launchy::application::browser 1 handles?(/home/dave/my_i/tmp/capybara/capybara-201401200000077817027890.html)} launchy_debug: checking if class launchy::detect::hostosfamily::windows 1 matches?(linux-gnu)} launchy_debug: checking if class launchy::detect::hostosfamily::darwin 1 matches?(linux-gnu)} launchy_debug: checking if class launchy::detect::hostosfamily::nix 1 matches?(linux-gnu)} launchy_debug: checking if class launchy::detect::rubyengine::mri 1 is_current_engine?(ruby)} launchy_debug: checking if class launchy::detect::hostosfamily::windows 1 matches?(linux-gnu)} launchy_debug: checking if class launchy::detect::hostosfamily::darwin 1 matches?(linux-gnu)} launchy_debug: checking if class launchy::detect::hostosfamily::nix 1 matches?(linux-gnu)} launchy_debug: checking if class launchy::detect::rubyengine::mri 1 is_current_engine?(ruby)} launchy_debug: checking if class launchy::detect::nixdesktopenvironment::kde 1 is_current_desktop_environment?()} launchy_debug: checking if class launchy::detect::nixdesktopenvironment::gnome 1 is_current_desktop_environment?()} launchy_debug: launchy::application : unable find `gnome-open' in /home/dave/.rvm/gems/ruby-2.0.0-p247@myi/bin, /home/dave/.rvm/rubies/ruby-2.0.0-p247/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247@global/bin, /home/dave/.rvm/bin, /usr/local/heroku/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games, /home/dave/jsms launchy_debug: launchy::application : found executable /usr/bin/firefox launchy_debug: launchy::application : unable find `seamonkey' in /home/dave/.rvm/gems/ruby-2.0.0-p247@myi/bin, /home/dave/.rvm/rubies/ruby-2.0.0-p247/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247@global/bin, /home/dave/.rvm/bin, /usr/local/heroku/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games, /home/dave/jsms launchy_debug: launchy::application : unable find `opera' in /home/dave/.rvm/gems/ruby-2.0.0-p247@myi/bin, /home/dave/.rvm/rubies/ruby-2.0.0-p247/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247@global/bin, /home/dave/.rvm/bin, /usr/local/heroku/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games, /home/dave/jsms launchy_debug: launchy::application : unable find `mozilla' in /home/dave/.rvm/gems/ruby-2.0.0-p247@myi/bin, /home/dave/.rvm/rubies/ruby-2.0.0-p247/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247@global/bin, /home/dave/.rvm/bin, /usr/local/heroku/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games, /home/dave/jsms launchy_debug: launchy::application : unable find `netscape' in /home/dave/.rvm/gems/ruby-2.0.0-p247@myi/bin, /home/dave/.rvm/rubies/ruby-2.0.0-p247/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247@global/bin, /home/dave/.rvm/bin, /usr/local/heroku/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games, /home/dave/jsms launchy_debug: launchy::application : unable find `galeon' in /home/dave/.rvm/gems/ruby-2.0.0-p247@myi/bin, /home/dave/.rvm/rubies/ruby-2.0.0-p247/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247@global/bin, /home/dave/.rvm/bin, /usr/local/heroku/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games, /home/dave/jsms launchy_debug: launchy::application::browser : possibility app_list : firefox launchy_debug: checking if class launchy::detect::nixdesktopenvironment::kde 1 is_current_desktop_environment?()} launchy_debug: checking if class launchy::detect::nixdesktopenvironment::gnome 1 is_current_desktop_environment?()} launchy_debug: launchy::application : unable find `gnome-open' in /home/dave/.rvm/gems/ruby-2.0.0-p247@myi/bin, /home/dave/.rvm/rubies/ruby-2.0.0-p247/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247@global/bin, /home/dave/.rvm/bin, /usr/local/heroku/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games, /home/dave/jsms launchy_debug: launchy::application : found executable /usr/bin/firefox launchy_debug: launchy::application : unable find `seamonkey' in /home/dave/.rvm/gems/ruby-2.0.0-p247@myi/bin, /home/dave/.rvm/rubies/ruby-2.0.0-p247/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247@global/bin, /home/dave/.rvm/bin, /usr/local/heroku/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games, /home/dave/jsms launchy_debug: launchy::application : unable find `opera' in /home/dave/.rvm/gems/ruby-2.0.0-p247@myi/bin, /home/dave/.rvm/rubies/ruby-2.0.0-p247/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247@global/bin, /home/dave/.rvm/bin, /usr/local/heroku/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games, /home/dave/jsms launchy_debug: launchy::application : unable find `mozilla' in /home/dave/.rvm/gems/ruby-2.0.0-p247@myi/bin, /home/dave/.rvm/rubies/ruby-2.0.0-p247/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247@global/bin, /home/dave/.rvm/bin, /usr/local/heroku/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games, /home/dave/jsms launchy_debug: launchy::application : unable find `netscape' in /home/dave/.rvm/gems/ruby-2.0.0-p247@myi/bin, /home/dave/.rvm/rubies/ruby-2.0.0-p247/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247@global/bin, /home/dave/.rvm/bin, /usr/local/heroku/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games, /home/dave/jsms launchy_debug: launchy::application : unable find `galeon' in /home/dave/.rvm/gems/ruby-2.0.0-p247@myi/bin, /home/dave/.rvm/rubies/ruby-2.0.0-p247/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247@global/bin, /home/dave/.rvm/bin, /usr/local/heroku/bin, /home/dave/.rvm/gems/ruby-2.0.0-p247/bin, /usr/local/sbin, /usr/local/bin, /usr/sbin, /usr/bin, /sbin, /bin, /usr/games, /usr/local/games, /home/dave/jsms launchy_debug: launchy::application::browser : using browser value 'firefox' fast debugger (ruby-debug-ide 0.4.22, debase 0.0.9) listens on 127.0.0.1:49751 launchy_debug: wet_run: before exec in child process launchy_debug: commandline_normalized => firefox /home/dave/my_i/tmp/capybara/capybara-201401200000077817027890.html  (process:18970): glib-critical **: g_slice_set_config: assertion 'sys_page_size == 0' failed 

weird thing looks it's finding firefox, default browser chrome

$ sudo update-alternatives --config x-www-browser 

this returns

there 2 choices alternative x-www-browser (providing /usr/bin/x-www-browser).    selection    path                           priority   status ------------------------------------------------------------ * 0            /usr/bin/google-chrome-stable   200       auto mode   1            /usr/bin/firefox                40        manual mode   2            /usr/bin/google-chrome-stable   200       manual mode 

the other weird thing, looks firefox running (in system monitor see process) don't have firefox window , when try start firefox error

firefox running, not responding. open new window, must first close existing firefox process, or restart system 

so few issues here

a) expected launchy using chrome not firefox

b) firefox process doesn't seem start correctly (however can start firefox otherwise)


Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -