"main": indexes[0],
"name": name,
"version": version or "0.0.0",
+ "chromium-args": "--enable-webgl --ignore-gpu-blacklist",
"window": {
"show": False,
"toolbar": False,
SELF=$(readlink -f "$0")
NWDIR=$(dirname "$SELF")/nw
NWBIN=$(command -v "$NWDIR/nw" nw | head -n 1)
+NWFLAGS="--enable-webgl --ignore-gpu-blacklist"
PACKAGE="$NWDIR/package.nw"
if [ ! -x "$NWBIN" ]; then
exit 127
fi
-"$NWBIN" "$@" "$PACKAGE"
+"$NWBIN" $NWFLAGS "$@" "$PACKAGE"
if [ "$?" = "127" -a -w "$NWBIN" ]; then
echo "Applying libudev.so.1 hack." >&2
sed -i 's/udev\.so\.0/udev.so.1/g' "$NWBIN"
- "$NWBIN" "$@" "$PACKAGE"
+ "$NWBIN" $NWFLAGS "$@" "$PACKAGE"
fi