Open URL to present browser

Ralf Mardorf ralf.mardorf at alice-dsl.net
Thu Sep 26 11:22:41 CEST 2013


On Thu, 2013-09-26 at 10:51 +0200, Ralf Mardorf wrote:
> On Thu, 2013-09-26 at 09:15 +0200, Xan wrote:
> > - 1) opening browser
> > - 2) if no openning browser, then his favorite...?
> 
> Replace the default browser with a script, similar to the below script.
> 
> [rocketmouse at archlinux ~]$ cat default.browser.sh
> #! /bin/bash
> 
> pidof midori
> case $? in
>   1) firefox $*;;
>   *) midori $*;;
> esac
> exit

PS:

I don't want to write a script for you, but you should be able to write
your own script and notice the advantages and disadvantages of your
idea. E.g. assumed several browsers are opened, which browser should be
used then?

[rocketmouse at archlinux .customization]$ cat default.browser.sh
#! /bin/bash

pidof midori
case $? in
  0) midori $*; exit;;
esac
pidof opera
case $? in
  0) opera $*;;
  *) firefox $*;;
esac
exit




More information about the Xfce mailing list