diff --git a/net-im/discord/Manifest b/net-im/discord/Manifest index d5f00b3..035e10a 100644 --- a/net-im/discord/Manifest +++ b/net-im/discord/Manifest @@ -1,3 +1,4 @@ +AUX launcher.sh 452 BLAKE2B ada0054ea8cc1c383c153794e7769cabfb97144d9e5abe5ff9fb9f3165bef47f7efa365d214c88647f9e04109898ff9ee8d5eb62fab56be483a711960e85581d SHA512 a6c25ff0ae0f0e14258bddfd93210c33fbbd350e87165d28fcd5943576634c58ccb723f9962d3b160af079553ffd039326c402eceaa8a760d547405787650239 DIST discord-0.0.61.tar.gz 103547728 BLAKE2B 8b8e37e0a5940a3a2dce93cdcafe4e3866ccb96e22c6f7bf994890704f3e5ee455eefcb647f73e4f4495e8627e8a97e50690fe66b8cd4243ad6d9e39c01b7837 SHA512 2b7955e93f2352a244ab0838c24399b556174179eb3aa7ef8ed32d914f7ab1e49165cf8ab374b15c90bddd8ec8150146d2ebcc94c7e1aa8c914c56d4b6a03d29 DIST discord-0.0.62.tar.gz 103553356 BLAKE2B cb319ee0ce9a3a1d9d8acf4810ab36f9ed4f93b1a82a15deb6ca05d50ad612a90d94f234eb38183e925444afa4f5035cd6bc0acbf3abaca3dec79f5f757e004c SHA512 6271382410340c0f38c4403af766fe18ea7548279f3bc75ebe748a75281c304d7738e2d857e208b8867a2330b2a9e22d292ad63421578db35b79e4d16267456f EBUILD discord-0.0.61.ebuild 3517 BLAKE2B 376f475de1231064440fa4508621101f2668319cc0d1b91592bfed39e5673994fc2c7a6fbd4e8df88e301d17ca6975e75cb2a5ecc0db591ad608235ad29769c1 SHA512 2e7678d3c65b235ec6d955e13af6b73447a1e32cd79592bcca1948ab232cb5f6f270cc6cc61c8f356f9c32ad539d9920f613d2df749590fd9498a1195532e751 diff --git a/net-im/discord/files/launcher.sh b/net-im/discord/files/launcher.sh new file mode 100644 index 0000000..2afc0ca --- /dev/null +++ b/net-im/discord/files/launcher.sh @@ -0,0 +1,20 @@ +#!/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[@]}" "$@"