How to open url in firefox

R

Raju Alluri

Hi,
I was trying to open a url through ruby script in firefox browser.
The below code opens the link in the background in Internet Explorer.
Is there a way to open it in Firefox and in foreground ?

require 'open-uri'
require 'uri'

open("http://mail.yahoo.com")

Thanks in advance,
Raju
 
A

Avdi Grimm

R

Raju Alluri

Avdi said:

Hi Advi,

Thanks for your response.
What do you mean by it doesnt ? It is actually opening a browser in the
background. I know this as i was monitoring logs when i open particular
links.

The other point on Launchy. can you please eloborate, I dont see any
library file Launcy in lib folder.

-Raju
 
A

Avdi Grimm

Thanks for your response.
What do you mean by it doesnt ? It is actually opening a browser in the
background. I know this as i was monitoring logs when i open particular
links.

OpenURI opens network connections inside Ruby, it doesn't interact
with your desktop at all. See the documentation:
http://ruby-doc.org/stdlib/libdoc/open-uri/rdoc/classes/OpenURI.html

Anything opening in Internet Explorer at the same time is a coincidence.
The other point on Launchy. can you please eloborate, I dont see any
library file Launcy in lib folder.

It's a Ruby gem that you must install with the command:

gem install launchy

--
Avdi

Home: http://avdi.org
Developer Blog: http://avdi.org/devblog/
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,216
Latest member
topweb3twitterchannels

Latest Threads

Top