summaryrefslogtreecommitdiff
path: root/.prefix/bin/x-www-browser
blob: 0ead72a1bc9f792494cf470ab8332e5c0e520872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

list='firefox iceweasel icecat conkeror'

looking=true
for prog in $list; do
	if $looking && [ -n "`pgrep $prog`" ]; then
		$prog $@
		looking=false
	fi
done
if $looking; then
	conkeror $@
fi