diff options
Diffstat (limited to 'net-im/discord/files')
-rw-r--r-- | net-im/discord/files/launcher.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net-im/discord/files/launcher.sh b/net-im/discord/files/launcher.sh index 032524ae68e9..2afc0caa50fd 100644 --- a/net-im/discord/files/launcher.sh +++ b/net-im/discord/files/launcher.sh @@ -4,10 +4,13 @@ declare -a discord_parameters -SECCOMP=false +# Variables set during ebuild configuration +EBUILD_SECCOMP=false +EBUILD_WAYLAND=false -[[ ! "${SECCOMP}" ]] && discord_parameters+=( --disable-seccomp-filter-sandbox ) +"${EBUILD_SECCOMP}" || discord_parameters+=( --disable-seccomp-filter-sandbox ) +"${EBUILD_WAYLAND}" && \ [[ -n "${WAYLAND_DISPLAY}" ]] && discord_parameters+=( --enable-features=UseOzonePlatform --ozone-platform=wayland |