discord/discord-launcher.sh
Knut Ahlers 177876de7d
Discord v0.0.52
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-30 12:17:36 +02:00

28 lines
764 B
Bash

#!/bin/sh
electron=electron@ELECTRON_VER@
if [ "$XDG_SESSION_TYPE" = wayland ]; then
# Using wayland
exec $electron \
--enable-features=UseOzonePlatform \
--ozone-platform=wayland \
--enable-accelerated-mjpeg-decode \
--enable-accelerated-video \
--ignore-gpu-blacklist \
--enable-native-gpu-memory-buffers \
--enable-gpu-rasterization \
--enable-gpu \
--enable-features=WebRTCPipeWireCapturer \
/usr/share/discord/resources/app.asar $@
else
# Using x11
exec $electron \
--enable-accelerated-mjpeg-decode \
--enable-accelerated-video \
--ignore-gpu-blacklist \
--enable-native-gpu-memory-buffers \
--enable-gpu-rasterization \
--enable-gpu \
/usr/share/discord/resources/app.asar $@
fi