org.yuzu_emu.yuzu/yuzu-launcher.sh
liushuyu a9e12781c5
manifest: add a temporary workaround for file limit ...
... this workaround the issue with "too many open files" in certain
cases
2021-12-12 23:28:06 -07:00

19 lines
815 B
Bash
Executable File

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