Initial commit
This commit is contained in:
22
net-im/equibop-bin/files/launcher.sh
Normal file
22
net-im/equibop-bin/files/launcher.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/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[@]}" "$@"
|
||||
|
||||
Reference in New Issue
Block a user