23 lines
473 B
Bash
23 lines
473 B
Bash
#!/usr/bin/env bash
|
|
|
|
declare -a equibop_flags
|
|
|
|
# Variables set during ebuild configuration
|
|
EBUILD_SECCOMP=false
|
|
EBUILD_WAYLAND=false
|
|
|
|
# Seccomp sandbox
|
|
"${EBUILD_SECCOMP}" || equibop_flags+=( --disable-seccomp-filter-sandbox )
|
|
|
|
# Wayland support
|
|
if "${EBUILD_WAYLAND}" && [[ -n "${WAYLAND_DISPLAY}" ]]; then
|
|
equibop_flags+=(
|
|
--enable-features=UseOzonePlatform
|
|
--ozone-platform=wayland
|
|
--enable-wayland-ime
|
|
)
|
|
fi
|
|
|
|
exec @@DESTDIR@@/equibop "${equibop_flags[@]}" "$@"
|
|
|