Files
chrysalis-mirror/build/launcher.sh
Gergely Nagy fbbefbe60f build/launcher.sh: Use a different - better - workaround for Wayland
Turns out that we don't need to force Chromium  to use an Xorg backend: we can
disable the GPU subprocess and GPU acceleration (not a big performance hit for
Chrysalis) instead. This way we'll use the Wayland backend still.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2022-05-26 18:10:30 +02:00

19 lines
461 B
Bash
Executable File

#! /usr/bin/env bash
set -e
if [[ -n "$WAYLAND_DISPLAY" ]]; then
set -- --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu "$@"
fi
if [ -e /proc/sys/kernel/unprivileged_userns_clone ]; then
if ! grep -qFx 1 /proc/sys/kernel/unprivileged_userns_clone; then
set -- --no-sandbox "$@"
fi
else
set -- --no-sandbox "$@"
fi
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
exec "$SCRIPT_DIR/chrysalis-bin" "$@"