From: | "PaweA Hajdan (phajdan.jr)" <phajdan.jr@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in www-client/chromium/files: chromium-launcher-r1.sh |
Date: | Tue, 22 Feb 2011 13:33:42 |
Message-Id: | 20110222133306.A6DC320057@flycatcher.gentoo.org |
1 | phajdan.jr 11/02/22 13:33:06 |
2 | |
3 | Added: chromium-launcher-r1.sh |
4 | Log: |
5 | Rename the launcher from chromium to chromium-browser, for xdg-open; bug #355517 by Dean Matzkov <Bapabooiee@×××××.com>. |
6 | |
7 | (Portage version: 2.1.9.25/cvs/Linux i686) |
8 | |
9 | Revision Changes Path |
10 | 1.1 www-client/chromium/files/chromium-launcher-r1.sh |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/files/chromium-launcher-r1.sh?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/files/chromium-launcher-r1.sh?rev=1.1&content-type=text/plain |
14 | |
15 | Index: chromium-launcher-r1.sh |
16 | =================================================================== |
17 | #!/bin/sh |
18 | # |
19 | # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
20 | # Use of this source code is governed by a BSD-style license that can be |
21 | # found in the LICENSE file. |
22 | |
23 | # Let the wrapped binary know that it has been run through the wrapper |
24 | export CHROME_WRAPPER="`readlink -f "$0"`" |
25 | |
26 | PROGDIR="`dirname "$CHROME_WRAPPER"`" |
27 | |
28 | case ":$PATH:" in |
29 | *:$PROGDIR:*) |
30 | # $PATH already contains $PROGDIR |
31 | ;; |
32 | *) |
33 | # Append $PROGDIR to $PATH |
34 | export PATH="$PATH:$PROGDIR" |
35 | ;; |
36 | esac |
37 | |
38 | # Set the .desktop file name |
39 | export CHROME_DESKTOP="chromium-browser-chromium.desktop" |
40 | |
41 | exec "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins "$@" |