blob: 98b0dd95c816b5f916e2c304bc7c01c0e0700c98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
# Allow users to override command-line options
if [[ -f ~/.config/chromium-flags.conf ]]; then
CHROMIUM_USER_FLAGS="$(cat ~/.config/chromium-flags.conf)"
fi
# Detect Pepper Flash
for i in '/opt/google/chrome-unstable' '/usr/lib'; do
if [[ -f $i/PepperFlash/libpepflashplayer.so ]]; then
PepperFlash="$i/PepperFlash/libpepflashplayer.so"
PepperFlashVersion="$(grep 'version' $i/PepperFlash/manifest.json | cut -d '"' -f4)"
CHROMIUM_USER_FLAGS+=" --ppapi-flash-path=$PepperFlash --ppapi-flash-version=$PepperFlashVersion"
continue
fi
done
export CHROME_WRAPPER=$(readlink -f "$0")
export CHROME_DESKTOP="chromium-snapshot-bin.desktop"
# Launch
exec /opt/chromium-snapshot/chrome $CHROMIUM_USER_FLAGS "$@"
|