Skip to contentSkip to conversation

git-web--browse: Add support for opera

PATCH In review Giuseppe Bilotta 1 participant 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-web--browse: Add support for opera

It's probably not the most widespread browser, it's free as in gratis but not as in libre, but it's worth supporting regardless, especially since it's a trivial addition.

---
 git-web--browse.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
git-web--browse.sh +3 -3
index 3fc4166..eb70375 100755
@@ -31,7 +31,7 @@ valid_custom_tool()
 
 valid_tool() {
 	case "$1" in
-		firefox | iceweasel | chrome | google-chrome | chromium | konqueror | w3m | links | lynx | dillo | open | start)
+		firefox | iceweasel | chrome | google-chrome | chromium | konqueror | opera | w3m | links | lynx | dillo | open | start)
 			;; # happy
 		*)
 			valid_custom_tool "$1" || return 1
@@ -103,7 +103,7 @@ fi
 
 if test -z "$browser" ; then
     if test -n "$DISPLAY"; then
-	browser_candidates="firefox iceweasel google-chrome chrome chromium konqueror w3m links lynx dillo"
+	browser_candidates="firefox iceweasel google-chrome chrome chromium konqueror opera w3m links lynx dillo"
 	if test "$KDE_FULL_SESSION" = "true"; then
 	    browser_candidates="konqueror $browser_candidates"
 	fi
@@ -173,7 +173,7 @@ case "$browser" in
     start)
         exec "$browser_path" '"web-browse"' "$@"
         ;;
-    dillo)
+    opera|dillo)
 	"$browser_path" "$@" &
 	;;
     *)
Signature · 1 line
1.7.3.2.184.gecaee
#1 lore raw

Actually, ignore this patch for the time being, I'm preparing a longer set that includes it but might need some discussion. Sorry for the noise.

Quoted 44 lines · Giuseppe Bilotta

It's probably not the most widespread browser, it's free as in gratis but not as in libre, but it's worth supporting regardless, especially since it's a trivial addition.

---
 git-web--browse.sh |    6 +++---

 1 files changed, 3 insertions(+), 3 deletions(-)
git-web--browse.sh +0 -0
index 3fc4166..eb70375 100755
@@ -31,7 +31,7 @@ valid_custom_tool()
 
  valid_tool() {

       case "$1" in

-               firefox | iceweasel | chrome | google-chrome | chromium | konqueror | w3m | links | lynx | dillo | open | start)
+               firefox | iceweasel | chrome | google-chrome | chromium | konqueror | opera | w3m | links | lynx | dillo | open | start)

                       ;; # happy
               *)
                       valid_custom_tool "$1" || return 1

git-web--browse.sh +0 -0
@@ -103,7 +103,7 @@ fi
 

 if test -z "$browser" ; then
    if test -n "$DISPLAY"; then
-       browser_candidates="firefox iceweasel google-chrome chrome chromium konqueror w3m links lynx dillo"
+       browser_candidates="firefox iceweasel google-chrome chrome chromium konqueror opera w3m links lynx dillo" if test "$KDE_FULL_SESSION" = "true"; then
           browser_candidates="konqueror $browser_candidates"
       fi

git-web--browse.sh +0 -0
@@ -173,7 +173,7 @@ case "$browser" in
     start)

        exec "$browser_path" '"web-browse"' "$@"
        ;;
-    dillo)
+    opera|dillo)
       "$browser_path" "$@" &
       ;;
    *)
--
1.7.3.2.184.gecaee

Signature · 1 line
Giuseppe "Oblomov" Bilotta