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.
This commit is contained in:
Carles Pastor 2022-04-30 16:44:14 +02:00
parent f75cb4987b
commit 2b9d14bb42

View file

@ -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
# 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