{"thread":{"id":"43818","subject":"[PATCH] git-web--browse: Support for using /bin/start on MinGW","startedAt":"2008-09-24T21:52:39Z","lastAt":"2008-09-24T21:52:39Z","messageCount":1,"participants":["Petr Baudis"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"299066","messageId":"1222293159-2068-1-git-send-email-pasky@suse.cz","threadId":"43818","inReplyTo":null,"subject":"[PATCH] git-web--browse: Support for using /bin/start on MinGW","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2008-09-24T21:52:39Z","receivedAt":"2008-09-24T21:52:39Z","isPatch":true,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"In the future, I think we should also default to xdg-open on Linux instead\nof having a KDE-specific hack.\n\nThis patch has been sponsored by Novartis.\n\nSigned-off-by: Petr Baudis <pasky@suse.cz>\n\n---\n Documentation/git-web--browse.txt |    1 +\n git-web--browse.sh                |    8 ++++++--\n 2 files changed, 7 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-web--browse.txt b/Documentation/git-web--browse.txt\nindex 7f7a45b..278cf73 100644\n--- a/Documentation/git-web--browse.txt\n+++ b/Documentation/git-web--browse.txt\n@@ -26,6 +26,7 @@ The following browsers (or commands) are currently supported:\n * lynx\n * dillo\n * open (this is the default under Mac OS X GUI)\n+* start (this is the default under MinGW)\n \n Custom commands may also be specified.\n \ndiff --git a/git-web--browse.sh b/git-web--browse.sh\nindex 384148a..78d236b 100755\n--- a/git-web--browse.sh\n+++ b/git-web--browse.sh\n@@ -31,7 +31,7 @@ valid_custom_tool()\n \n valid_tool() {\n \tcase \"$1\" in\n-\t\tfirefox | iceweasel | konqueror | w3m | links | lynx | dillo | open)\n+\t\tfirefox | iceweasel | konqueror | w3m | links | lynx | dillo | open | start)\n \t\t\t;; # happy\n \t\t*)\n \t\t\tvalid_custom_tool \"$1\" || return 1\n@@ -114,6 +114,10 @@ if test -z \"$browser\" ; then\n     if test -n \"$SECURITYSESSIONID\"; then\n \tbrowser_candidates=\"open $browser_candidates\"\n     fi\n+    # /bin/start indicates MinGW\n+    if test -n /bin/start; then\n+\tbrowser_candidates=\"start $browser_candidates\"\n+    fi\n \n     for i in $browser_candidates; do\n \tinit_browser_path $i\n@@ -157,7 +161,7 @@ case \"$browser\" in\n \t\t;;\n \tesac\n \t;;\n-    w3m|links|lynx|open)\n+    w3m|links|lynx|open|start)\n \teval \"$browser_path\" \"$@\"\n \t;;\n     dillo)\n-- \ntg: (c427559..) t/web--browse/mingw (depends on: vanilla/master)\n"}]}