mirror of
https://github.com/keyboardio/Chrysalis.git
synced 2026-02-28 19:07:17 +01:00
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>
19 lines
461 B
Bash
Executable File
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" "$@"
|