summarylogtreecommitdiffstats
path: root/chrysalis.sh
blob: b0835280ba68c183d707678492de2f3941a8fc9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env sh
set -e

if [ -n "$WAYLAND_DISPLAY" ]; then
	set -- --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"
fi

if ! grep -qFx 1 /proc/sys/kernel/unprivileged_userns_clone; then
	set -- --no-sandbox "$@"
fi

exec electron /usr/lib/chrysalis/app.asar "$@"