git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
To: git@vger.kernel.org
Cc: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
Subject: [PATCH 3/3] git-web--browse: Add support for google chrome
Date: Sun, 16 May 2010 01:28:40 +0530	[thread overview]
Message-ID: <1273953520-25990-3-git-send-email-pavan.sss1991@gmail.com> (raw)
In-Reply-To: <1273953520-25990-1-git-send-email-pavan.sss1991@gmail.com>

Add support for another web browser called chrome. To
select it, the value of the browser should be 'chromium'.

Signed-off-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
---
 git-web--browse.sh |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/git-web--browse.sh b/git-web--browse.sh
index a578c3a..72dde3b 100755
--- a/git-web--browse.sh
+++ b/git-web--browse.sh
@@ -31,7 +31,7 @@ valid_custom_tool()
 
 valid_tool() {
 	case "$1" in
-		firefox | iceweasel | konqueror | w3m | links | lynx | dillo | open | start)
+		firefox | iceweasel | chromium | konqueror | 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 konqueror w3m links lynx dillo"
+	browser_candidates="firefox iceweasel chromium konqueror w3m links lynx dillo"
 	if test "$KDE_FULL_SESSION" = "true"; then
 	    browser_candidates="konqueror $browser_candidates"
 	fi
@@ -146,6 +146,11 @@ case "$browser" in
 	test "$vers" -lt 2 && NEWTAB=''
 	"$browser_path" $NEWTAB "$@" &
 	;;
+    chromium)
+	# Actual command for chromium is chromium-browser.
+	# No need to specify newTab. It's default in chromium
+	eval "$browser_path-browser" "$@" &
+	;;
     konqueror)
 	case "$(basename "$browser_path")" in
 	    konqueror)
-- 
1.7.1.16.g5d405c.dirty

  parent reply	other threads:[~2010-05-15 19:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-15 19:58 [PATCHv2 GSoC 1/3] gitweb: Set default destination directory for installing gitweb in Makefile Pavan Kumar Sunkara
2010-05-15 19:58 ` [PATCH GSoC 2/3] git-instaweb: Configure it to work with a global server root and projects list Pavan Kumar Sunkara
2010-05-16  0:16   ` Dévai Tamás
2010-05-17 20:22     ` Pavan Kumar Sunkara
2010-05-18 13:33   ` Jakub Narebski
2010-05-18 18:56     ` Pavan Kumar Sunkara
2010-05-18 23:05       ` Jakub Narebski
2010-05-19  8:58         ` Pavan Kumar Sunkara
2010-05-19 16:48           ` Jakub Narebski
2010-05-18 22:54     ` Eric Wong
2010-05-15 19:58 ` Pavan Kumar Sunkara [this message]
2010-05-16 21:01   ` [PATCH 3/3] git-web--browse: Add support for google chrome Erik Faye-Lund

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1273953520-25990-3-git-send-email-pavan.sss1991@gmail.com \
    --to=pavan.sss1991@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).