summaryrefslogtreecommitdiff
blob: 31c2cc3bf2cacfd217731cd1a830e54851c1c17e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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[@]}" "$@"