Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/chromium/files: chromium.default chromium-launcher-r3.sh
Date: Fri, 01 Mar 2013 02:15:37
Message-Id: 20130301021533.2697D2171E@flycatcher.gentoo.org
1 floppym 13/03/01 02:15:32
2
3 Modified: chromium.default
4 Added: chromium-launcher-r3.sh
5 Log:
6 Beta channel bump. Modify chromium-launcher to source all files in /etc/chromium, bug 459734.
7
8 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
9
10 Revision Changes Path
11 1.2 www-client/chromium/files/chromium.default
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/files/chromium.default?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/files/chromium.default?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/files/chromium.default?r1=1.1&r2=1.2
16
17 Index: chromium.default
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/files/chromium.default,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- chromium.default 26 May 2011 11:09:13 -0000 1.1
24 +++ chromium.default 1 Mar 2013 02:15:32 -0000 1.2
25 @@ -2,4 +2,4 @@
26 # the chromium launcher.
27
28 # Options to pass to chromium.
29 -CHROMIUM_FLAGS=""
30 +#CHROMIUM_FLAGS=""
31
32
33
34 1.1 www-client/chromium/files/chromium-launcher-r3.sh
35
36 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/files/chromium-launcher-r3.sh?rev=1.1&view=markup
37 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/files/chromium-launcher-r3.sh?rev=1.1&content-type=text/plain
38
39 Index: chromium-launcher-r3.sh
40 ===================================================================
41 #!/bin/bash
42
43 # Allow the user to override command-line flags, bug #357629.
44 # This is based on Debian's chromium-browser package, and is intended
45 # to be consistent with Debian.
46 shopt -s nullglob
47 for f in /etc/chromium/*; do
48 [[ -f ${f} ]] && source "${f}"
49 done
50
51 # Prefer user defined CHROMIUM_USER_FLAGS (from env) over system
52 # default CHROMIUM_FLAGS (from /etc/chromium/default).
53 CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-"$CHROMIUM_FLAGS"}
54
55 # Let the wrapped binary know that it has been run through the wrapper
56 export CHROME_WRAPPER=$(readlink -f "$0")
57
58 PROGDIR=${CHROME_WRAPPER%/*}
59
60 case ":$PATH:" in
61 *:$PROGDIR:*)
62 # $PATH already contains $PROGDIR
63 ;;
64 *)
65 # Append $PROGDIR to $PATH
66 export PATH="$PATH:$PROGDIR"
67 ;;
68 esac
69
70 # Set the .desktop file name
71 export CHROME_DESKTOP="chromium-browser-chromium.desktop"
72
73 exec -a "chromium-browser" "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins ${CHROMIUM_FLAGS} "$@"