/[packages]/cauldron/chromium-browser-stable/current/SOURCES/chromium-wrapper
ViewVC logotype

Contents of /cauldron/chromium-browser-stable/current/SOURCES/chromium-wrapper

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1672476 - (show annotations) (download)
Tue Jan 19 07:52:32 2021 UTC (3 years, 2 months ago) by cjw
File size: 717 byte(s)
- patch248: fix i586 build
- patch249: fix i586 seccomp errors
- remove shockwave flash support from wrapper script
- wrapper script: add command-line options from ~/.config/chromium-browser/args.txt (mga #27702)

1 #!/bin/bash
2 #
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # Let the wrapped binary know that it has been run through the wrapper
8 export CHROME_WRAPPER="`readlink -f "$0"`"
9
10 PROGDIR="`dirname "$CHROME_WRAPPER"`"
11
12 case ":$PATH:" in
13 *:$PROGDIR:*)
14 # $PATH already contains $PROGDIR
15 ;;
16 *)
17 # Append $PROGDIR to $PATH
18 export PATH="$PATH:$PROGDIR"
19 ;;
20 esac
21
22 # Mageia addition:
23 EXTRA_ARGS=
24 USER_ARGS_FILE=$HOME/.config/chromium-browser/args.txt
25
26 if [ -f "$USER_ARGS_FILE" ]; then
27 EXTRA_ARGS+=$(grep -v '^#' "$USER_ARGS_FILE")
28 fi
29
30 exec -a "$0" "$PROGDIR/chrome" $EXTRA_ARGS "$@"

  ViewVC Help
Powered by ViewVC 1.1.30