From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8F0C215802E for ; Mon, 24 Jun 2024 22:16:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B55EDE2A23; Mon, 24 Jun 2024 22:16:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9A225E2A23 for ; Mon, 24 Jun 2024 22:16:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A4497335D1C for ; Mon, 24 Jun 2024 22:16:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A45A21D32 for ; Mon, 24 Jun 2024 22:16:25 +0000 (UTC) From: "Nick Sarnie" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nick Sarnie" Message-ID: <1719267170.83b7b26d11695034f09482b389e1da0da6d09b19.sarnex@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/discord/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/discord/discord-0.0.57-r1.ebuild net-im/discord/discord-0.0.57.ebuild X-VCS-Directories: net-im/discord/ X-VCS-Committer: sarnex X-VCS-Committer-Name: Nick Sarnie X-VCS-Revision: 83b7b26d11695034f09482b389e1da0da6d09b19 X-VCS-Branch: master Date: Mon, 24 Jun 2024 22:16:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8c5300e6-bd2e-40d6-ae58-89fb54324b8e X-Archives-Hash: df15b1d14f19b3a904c41531b71660fb commit: 83b7b26d11695034f09482b389e1da0da6d09b19 Author: Jon Janzen jonjanzen com> AuthorDate: Thu Jun 6 02:25:24 2024 +0000 Commit: Nick Sarnie gentoo org> CommitDate: Mon Jun 24 22:12:50 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83b7b26d net-im/discord: Add wayland support Discord appears to support wayland when launched with these options, it just needs to be enabled manually. Signed-off-by: Jon Janzen jonjanzen.com> Closes: https://github.com/gentoo/gentoo/pull/37043 Signed-off-by: Nick Sarnie gentoo.org> .../discord/{discord-0.0.57.ebuild => discord-0.0.57-r1.ebuild} | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net-im/discord/discord-0.0.57.ebuild b/net-im/discord/discord-0.0.57-r1.ebuild similarity index 93% rename from net-im/discord/discord-0.0.57.ebuild rename to net-im/discord/discord-0.0.57-r1.ebuild index fefed5b524d7..e7dde173394c 100644 --- a/net-im/discord/discord-0.0.57.ebuild +++ b/net-im/discord/discord-0.0.57-r1.ebuild @@ -23,7 +23,7 @@ LICENSE="all-rights-reserved" SLOT="0" KEYWORDS="amd64" -IUSE="appindicator +seccomp" +IUSE="appindicator +seccomp wayland" RESTRICT="bindist mirror strip test" RDEPEND=" @@ -85,6 +85,12 @@ src_prepare() { sed -i "/Exec/s:/usr/share/discord/Discord:${DESTDIR}/${MY_PN^}:" \ "${MY_PN}.desktop" || die "fixing of exec location on .desktop failed" + # USE wayland + if use wayland; then + sed -i '/Exec/s/Discord/Discord --enable-features=UseOzonePlatform --ozone-platform=wayland/' \ + "${MY_PN}.desktop" || + die "sed failed for wayland" + fi # USE seccomp if ! use seccomp; then sed -i '/Exec/s/Discord/Discord --disable-seccomp-filter-sandbox/' \