Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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:

Hello:

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.

Thanks,
Doug

Comment on Picking the default browser in linux
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" WWWBrowser.pm 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2014-09-22 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls