|
|
@@ -28,6 +28,7 @@ firefox_dir="@l_prefix@/lib/firefox"
|
|
|
firefox_browser_bin="$firefox_dir/firefox"
|
|
|
firefox_remote_bin="$firefox_dir/run-mozilla.sh $firefox_dir/mozilla-xremote-client"
|
|
|
xsel_bin="@l_prefix@/bin/xsel"
|
|
|
+wmctrl_bin="@l_prefix@/bin/wmctrl"
|
|
|
|
|
|
# option parsing
|
|
|
opt_v=no
|
|
|
@@ -94,7 +95,7 @@ for url in "$@"; do
|
|
|
auto:* )
|
|
|
url=`echo "$url" | sed -e 's;^auto:;;'`
|
|
|
case "$url" in
|
|
|
- http://* | https://* | ftp://* ) ;;
|
|
|
+ http://* | https://* | ftp://* | file://* ) ;;
|
|
|
www.* ) url="http://$url" ;;
|
|
|
ftp.* ) url="ftp://$url" ;;
|
|
|
*.tar.gz | *.tgz ) url="ftpsearch:$url" ;;
|
|
|
@@ -105,7 +106,7 @@ for url in "$@"; do
|
|
|
;;
|
|
|
esac
|
|
|
case "$url" in
|
|
|
- http://* | https://* | ftp://* )
|
|
|
+ http://* | https://* | ftp://* | file://* )
|
|
|
: # URL is already fully qualified
|
|
|
;;
|
|
|
google:* )
|
|
|
@@ -178,6 +179,9 @@ for url in "$@"; do
|
|
|
done
|
|
|
fi
|
|
|
|
|
|
+ # try to activate (and bring to foreground) the Mozilla Firefox window
|
|
|
+ $wmctrl_bin -a "Mozilla Firefox" >/dev/null 2>&1 || true
|
|
|
+
|
|
|
# determine remote command
|
|
|
if [ ".$opt_w" = .yes ]; then
|
|
|
if [ ".$url" = ".about:blank" ]; then
|