yuzu-launcher: use X11 if using NVIDIA GPU

This commit is contained in:
liushuyu 2023-11-15 23:05:45 -07:00
parent 2d901fe1b8
commit d748ef03f1
2 changed files with 7 additions and 1 deletions

@ -1 +1 @@
Subproject commit 24f7c7d54fb3ec86b58a5f5a81de24e9f7b33ea8
Subproject commit 80aa46759c01ab75dadfc8e7166cc1e2f06d2d62

View file

@ -13,6 +13,12 @@ EOF
zenity --warning --no-wrap --title "That's awkward ..." --text "$MESSAGE"
}
# Use X11 if user has a NVIDIA card
# see https://github.com/flathub/org.yuzu_emu.yuzu/issues/1309
if test -c /dev/nvidiactl; then
export QT_QPA_PLATFORM=xcb
fi
# Discord RPC
for i in {0..9}; do
test -S "$XDG_RUNTIME_DIR"/"discord-ipc-$i" || ln -sf {app/com.discordapp.Discord,"$XDG_RUNTIME_DIR"}/"discord-ipc-$i";