io.github.lime3ds.Lime3DS/lime3ds-launcher.sh

29 lines
1.2 KiB
Bash
Raw Normal View History

2024-04-04 17:22:56 +00:00
#!/bin/bash -e
report_error() {
read -r -d '|' MESSAGE <<EOF
Unfortunately, Lime3DS seems to have crashed.
We kindly ask you to submit a bug report to <a href="https://github.com/flathub/io.github.lime3ds.Lime3DS/issues">https://github.com/flathub/io.github.lime3ds.Lime3DS/issues</a>.
When submitting a bug report, please attach your <b>system information</b> and the <b>Lime3DS log file</b>.
You seem to be using ${XDG_SESSION_DESKTOP} ${DESKTOP_SESSION} (${XDG_SESSION_TYPE}):
2024-08-15 15:21:51 +00:00
To obtain Lime3DS log files, please see <a href="https://web.archive.org/web/20240229211203/https://community.citra-emu.org/t/how-to-upload-the-log-file/296/">this guide</a>.
To obtain your system information, please install <tt>inxi</tt> and run <tt>inxi -v3</tt>.
Please also provide the value shown after running <tt>ulimit -nH</tt>. |
2024-04-04 17:22:56 +00:00
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
2024-09-15 18:26:15 +00:00
if ! prlimit --nofile=8192 lime3ds "$@"; then
2024-04-04 17:22:56 +00:00
report_error
fi