#5 Browser Settings

closed
nobody
Settings (8)
5
2004-10-16
2003-05-05
No

A possible feature for the browser setup, is to have
RSS viewer use the system default browser.

Keep the customisable option but have a check box to
use the system default.

For windows...
rundll32 url.dll,FileProtocolHandler http://www.domain.com

For Unix.. If netscape is present
netscape -remote openURL(http://www.domain.com)

Mac is a little more involved..

There is some info on the subject
http://www.javaworld.com/javaworld/javatips/jw-javatip66.html
and also a BrowserLauncher Class done by "Eric Albert"
of stanford.

Of course this will introduce platform specific code,
but uses the exec() command which is still pure Java.
It would add a little in ability to run from the word
go with less configuring.
Also for a mozilla user like myself, the use of this
code opens up the url in the current browser window
rather than opening up a whole new browser window. Much
better for tabbed browsers and also keeps down the
number of opened windows for non tabbed browsers.

Discussion

  • Matthias Schmidt

    Logged In: YES
    user_id=643599

    Hi Dan,

    to fire up the systems default browser under MacOSX you only need to
    use the command "open" and your done.

     
  • Christoph Walcher

    • status: open --> closed
     
  • Christoph Walcher

    Logged In: YES
    user_id=623161

    Fixed in version 2.0

     

Log in to post a comment.