From: Jeremy Hinegardner Date: 2007-08-13T02:16:59+09:00 Subject: Re: launchy 0.1.2 Released On Sun, Aug 12, 2007 at 11:30:04PM +0900, J?rg W Mittag wrote: > Olivier Renaud wrote: > > Le dimanche 12 ao?t 2007 11:53, Sebastian Hungerecker a ?crit?: > >> Trans wrote: > >>> On Aug 11, 11:51 pm, Jeremy Hinegardner wrote: > >>>> launchy version 0.1.2 has been released. > >>>> > >>>> Launchy is helper class for launching cross-platform applications in a > >>>> fire and forget manner. > >>> * How does it deal with a systems that have more than one browser > >>> installed? Which browser does it choose? > >> According to the documentation on the homepage: > >> APP_LIST = { :windows => %w[ firefox iexplore ], :darwin => %w[ open ], > >> :nix => %w[ firefox ], :unknown => [], } > [...] > > So, it won't work on my computer, since I run linux without firefox installed. > > Under Windows, there is a default browser that can be set by the user, it > > would be great to use this one, though I don't know how to get it. Maybe from > > the registry ? > > No need. Windows has had an equivalent to MacOS's 'open' since > Windows 95, I believe: > > url = 'http://Ruby-Lang.Org/' > `start #{url}` > > 'start' will launch whatever application is registered to handle the > filetype (if the parameter is a file) or protocol (if the parameter is > a URI) in question -- in my case Opera. > > So, just setting > > Launchy::Spawnable::Browser::APP_LIST[:windows] = ['start'] > > *should* work, but, unfortunately, Launchy doesn't work for me at all, > so I can neither confirm nor deny that. Thanks for the info, I personally don't have a windows machine to test on so I was shooting from the hip here. I'll change the windows launching and have a new release out today. enjoy, -jeremy -- ======================================================================== Jeremy Hinegardner jeremy@hinegardner.org