#!/bin/bash -e report_error() { read -r -d '|' MESSAGE <https://github.com/flathub/io.github.lime3ds.Lime3DS/issues. When submitting a bug report, please attach your system information and the Lime3DS log file. You seem to be using ${XDG_SESSION_DESKTOP} ${DESKTOP_SESSION} (${XDG_SESSION_TYPE}): To obtain Lime3DS log files, please see this guide. # TODO: Update this URL when the Lime3DS website is finished 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 lime3ds-gui "$@"; then report_error fi