[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Detecting "default browser"?



Salut Xavier,

On Thu, Mar 20, 2003 at 08:04:10AM +0100, Xavier Roche wrote:

> Is there a clean way to detect the default (installed) browser on Debian?
> The idea would be to avoid if possible scripts like:
> 
> for i in mozilla galeon konqueror ..; do 
>   if test -x "/usr/bin/$i"; then 
>     /usr/bin/$i $@
>     exit $?
>   fi
> done

Alternatives are made for that. /usr/sbin/www-browser points, through
a chain of symlinks, to some browser. See update-alternatives(8)

Cheers -Ralf.



Reply to: