Sophie

Sophie

distrib > Mageia > 8 > armv7hl > by-pkgid > 1215c350cec1960e1cf891a2590c03af > files > 48

chromium-browser-stable-100.0.4896.127-1.mga8.src.rpm

#!/bin/bash
#
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Let the wrapped binary know that it has been run through the wrapper
export CHROME_WRAPPER="`readlink -f "$0"`"

PROGDIR="`dirname "$CHROME_WRAPPER"`"

case ":$PATH:" in
  *:$PROGDIR:*)
    # $PATH already contains $PROGDIR
    ;;
  *)
    # Append $PROGDIR to $PATH
    export PATH="$PATH:$PROGDIR"
    ;;
esac

# Mageia addition:
EXTRA_ARGS="--disable-features=AudioServiceOutOfProcess \
            --no-default-browser-check"
            
USER_ARGS_FILE=$HOME/.config/chromium/args.txt

if [ -f "$USER_ARGS_FILE" ]; then
  EXTRA_ARGS+=$(grep -v '^#' "$USER_ARGS_FILE")
fi

exec -a "$0" "$PROGDIR/chrome" $EXTRA_ARGS "$@"