#!/bin/bash -e report_error() { read -r -d '|' MESSAGE <https://github.com/flathub/org.yuzu_emu.yuzu/issues. When submitting a bug report, please attach your system information and the yuzu log file. You seem to be using ${XDG_SESSION_DESKTOP} ${DESKTOP_SESSION} (${XDG_SESSION_TYPE}): To obtain yuzu log files, please see this guide. To obtain your system information, please install inxi and run inxi -v3. | EOF zenity --warning --no-wrap --title "That's awkward ..." --text "$MESSAGE" } # 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"; done if ! prlimit --nofile=8192 yuzu "$@"; then report_error fi