gentoo-ebuilds/net-im/discord/files/launcher.sh
Nick Sarnie 4c29dfec30
net-im/discord: add 0.0.99, drop 0.0.98
Closes: https://bugs.gentoo.org/958494

Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
2025-06-24 20:23:56 -04:00

20 lines
456 B
Bash

#!/usr/bin/env bash
# coding: UTF-8
declare -a discord_parameters
# Variables set during ebuild configuration
EBUILD_SECCOMP=false
EBUILD_WAYLAND=false
"${EBUILD_SECCOMP}" || discord_parameters+=( --disable-seccomp-filter-sandbox )
"${EBUILD_WAYLAND}" && \
[[ -n "${WAYLAND_DISPLAY}" ]] && discord_parameters+=(
--enable-features=UseOzonePlatform
--ozone-platform=wayland
--enable-wayland-ime
)
@@DESTDIR@@/Discord "${discord_parameters[@]}" "$@"