tkurbad-overlay/net-im/discord/files/launcher.sh
2024-07-31 16:58:55 +02:00

21 lines
452 B
Bash

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