#!/bin/bash -e report_error() { read -r -d '|' MESSAGE <https://github.com/flathub/org.citra_emu.citra/issues. When submitting a bug report, please attach your system information and the Citra log file. You seem to be using ${XDG_SESSION_DESKTOP} ${DESKTOP_SESSION} (${XDG_SESSION_TYPE}): To obtain Citra 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" } unset VK_ICD_FILENAMES VK_DRIVER_FILES # 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 citra-qt "$@"; then report_error fi