diff options
author | Jon Janzen <jon@jonjanzen.com> | 2024-06-05 19:25:24 -0700 |
---|---|---|
committer | Nick Sarnie <sarnex@gentoo.org> | 2024-06-24 18:12:50 -0400 |
commit | 83b7b26d11695034f09482b389e1da0da6d09b19 (patch) | |
tree | d7cf4162e01780b1690b5984987a05d6b67e1fd4 /net-im | |
parent | app-crypt/qca: 2.3.9 version bump (diff) | |
download | gentoo-83b7b26d11695034f09482b389e1da0da6d09b19.tar.gz gentoo-83b7b26d11695034f09482b389e1da0da6d09b19.tar.bz2 gentoo-83b7b26d11695034f09482b389e1da0da6d09b19.zip |
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 <jon@jonjanzen.com>
Closes: https://github.com/gentoo/gentoo/pull/37043
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/discord/discord-0.0.57-r1.ebuild (renamed from net-im/discord/discord-0.0.57.ebuild) | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net-im/discord/discord-0.0.57.ebuild b/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/' \ |