- enhance default browsers list

This commit is contained in:
ajacoutot 2008-11-26 17:49:39 +00:00
parent bbd32b3a72
commit abda00e4e8
3 changed files with 30 additions and 16 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.2 2008/11/01 19:30:07 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.3 2008/11/26 17:49:39 ajacoutot Exp $
COMMENT= utilities to assist desktop integration tasks
DISTNAME= xdg-utils-1.0.2
PKGNAME= ${DISTNAME}p0
PKGNAME= ${DISTNAME}p1
CATEGORIES= devel
HOMEPAGE= http://portland.freedesktop.org/wiki/

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-scripts_xdg-email,v 1.2 2008/11/01 19:30:07 ajacoutot Exp $
$OpenBSD: patch-scripts_xdg-email,v 1.3 2008/11/26 17:49:39 ajacoutot Exp $
--- scripts/xdg-email.orig Sun Jun 24 21:58:04 2007
+++ scripts/xdg-email Thu Oct 30 19:37:30 2008
+++ scripts/xdg-email Wed Nov 26 18:45:09 2008
@@ -480,7 +480,7 @@ result=$(echo "$1" | $utf8 | awk '
options=
@ -10,10 +10,12 @@ $OpenBSD: patch-scripts_xdg-email,v 1.2 2008/11/01 19:30:07 ajacoutot Exp $
while [ $# -gt 0 ] ; do
parm="$1"
shift
@@ -600,6 +600,15 @@ mailto=`echo "${mailto}"| sed 's/[?&]$//'`
@@ -607,12 +607,21 @@ if which xdg-email-hook.sh > /dev/null 2> /dev/null; t
fi
fi
if which xdg-email-hook.sh > /dev/null 2> /dev/null; then
xdg-email-hook.sh "${mailto}"
+if which xdg-email-hook > /dev/null 2> /dev/null; then
+ xdg-email-hook "${mailto}"
+ if [ $? -eq 0 ]; then
+ exit_success
+ else
@ -21,8 +23,13 @@ $OpenBSD: patch-scripts_xdg-email,v 1.2 2008/11/01 19:30:07 ajacoutot Exp $
+ fi
+fi
+
+if which xdg-email-hook > /dev/null 2> /dev/null; then
+ xdg-email-hook "${mailto}"
if [ $? -eq 0 ]; then
exit_success
else
detectDE
if [ x"$DE" = x"" ]; then
# if BROWSER variable is not set, check some well known browsers instead
if [ x"$BROWSER" = x"" ]; then
- BROWSER=firefox:mozilla:netscape
+ BROWSER=firefox:seamonkey:epiphany:opera:mozilla:netscape
fi
DE=generic
fi

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-scripts_xdg-open,v 1.1 2008/11/01 19:30:07 ajacoutot Exp $
--- scripts/xdg-open.orig Thu Oct 30 19:38:11 2008
+++ scripts/xdg-open Thu Oct 30 19:38:32 2008
@@ -403,6 +403,15 @@ if [ -z "${url}" ] ; then
$OpenBSD: patch-scripts_xdg-open,v 1.2 2008/11/26 17:49:39 ajacoutot Exp $
--- scripts/xdg-open.orig Sun Jun 24 21:58:01 2007
+++ scripts/xdg-open Wed Nov 26 18:44:57 2008
@@ -403,12 +403,21 @@ if [ -z "${url}" ] ; then
exit_failure_syntax "file or URL argument missing"
fi
@ -17,3 +17,10 @@ $OpenBSD: patch-scripts_xdg-open,v 1.1 2008/11/01 19:30:07 ajacoutot Exp $
detectDE
if [ x"$DE" = x"" ]; then
# if BROWSER variable is not set, check some well known browsers instead
if [ x"$BROWSER" = x"" ]; then
- BROWSER=firefox:mozilla:netscape
+ BROWSER=firefox:seamonkey:epiphany:opera:mozilla:netscape
fi
DE=generic
fi