Files
kisulay/net-im/equibop-bin/files/launcher.sh
2026-01-24 03:10:51 +02:00

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[@]}" "$@"