Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Picking the default browser in linux

by sweetser (Acolyte)
on Feb 02, 2008 at 16:38 UTC ( #665745=perlquestion: print w/ replies, xml ) Need Help??
sweetser has asked for the wisdom of the Perl Monks concerning the following question:


Is there a way to find out what someone's default browser is so I can call it to open an html page? I don't want to go exploring for firefox, mozilla, konqueror, and/or safari by hand.


Comment on Picking the default browser in linux
Replies are listed 'Best First'.
Re: Picking the default browser in linux
by ww (Bishop) on Feb 02, 2008 at 16:59 UTC

    Previously answered: Is there a system command in Linux... at least in part, by tcf03's "untested" reply.

    SuperSearch is your friend.

    Update And, despite the warning, "# DO NOT USE THIS MODULE IN YOUR PROJECTS" does provide a rather more extensive list of possible browsers than you mentioned, as well as a way to deal with W32 browsers.

Re: Picking the default browser in linux
by renodino (Curate) on Feb 02, 2008 at 18:29 UTC
      This is for the testing part of a set of programs. I am not comfortable requiring modules for testing. It looks like this one not only needs HTML::Display which does not appear to be in a standard debian package, but also libhtml-tokeparser-simple-perl.

      I think I will go the ultra easy way: tell the person doing the test to open up the files in their browser if interested.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://665745]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2015-11-30 05:23 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (758 votes), past polls