From 2b9d14bb421eae1214583798539c9b9ed3e2dda3 Mon Sep 17 00:00:00 2001 From: Carles Pastor Date: Sat, 30 Apr 2022 16:44:14 +0200 Subject: [PATCH] Use gtk3 file chooser on steamdeck The steamdeck runs kde but has some issues with the kde portal. As a workaround we're crudely detecting the steamdeck using vendor strings and setting QT_QPA_PLATFORMTHEME=gtk3 until a fix comes. --- org.DolphinEmu.dolphin-emu.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/org.DolphinEmu.dolphin-emu.yml b/org.DolphinEmu.dolphin-emu.yml index 8b2f49e..8e67ec1 100644 --- a/org.DolphinEmu.dolphin-emu.yml +++ b/org.DolphinEmu.dolphin-emu.yml @@ -129,5 +129,12 @@ modules: - 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; - done - - dolphin-emu "$@" + # use gtk3 filechooser on steamdeck + - bv=`cat /sys/devices/virtual/dmi/id/board_vendor` + - bv=$bv`cat /sys/devices/virtual/dmi/id/board_name` + - if [[ $bv == "ValveJupiter" ]]; then + - QT_QPA_PLATFORMTHEME=gtk3 dolphin-emu "$@" + - else + - dolphin-emu "$@" + - fi dest-filename: dolphin-emu-wrapper