mirror of
https://github.com/flathub/org.yuzu_emu.yuzu.git
synced 2025-05-29 21:28:39 +00:00
manifest: add a temporary workaround for file limit ...
... this workaround the issue with "too many open files" in certain cases
This commit is contained in:
parent
a563aa5960
commit
a9e12781c5
@ -5,7 +5,7 @@
|
||||
"sdk": "org.kde.Sdk",
|
||||
"base": "io.qt.qtwebengine.BaseApp",
|
||||
"base-version": "5.15-21.08",
|
||||
"command": "yuzu",
|
||||
"command": "yuzu-launcher",
|
||||
"rename-desktop-file": "yuzu.desktop",
|
||||
"rename-icon": "yuzu",
|
||||
"finish-args": [
|
||||
@ -217,9 +217,10 @@
|
||||
"/share/pixmaps"
|
||||
],
|
||||
"post-install": [
|
||||
"install -Dm755 ../yuzu-launcher.sh /app/bin/yuzu-launcher",
|
||||
"install -Dm644 ../org.yuzu_emu.yuzu.metainfo.xml /app/share/appdata/org.yuzu_emu.yuzu.metainfo.xml",
|
||||
"desktop-file-install --dir=/app/share/applications ../dist/yuzu.desktop",
|
||||
"desktop-file-edit --set-key StartupWMClass --set-value yuzu /app/share/applications/yuzu.desktop",
|
||||
"desktop-file-edit --set-key StartupWMClass --set-value yuzu --set-key Exec --set-value yuzu-launcher /app/share/applications/yuzu.desktop",
|
||||
"install -Dm644 ../dist/yuzu.svg /app/share/icons/hicolor/scalable/apps/yuzu.svg",
|
||||
"mv /app/share/mime/packages/yuzu.xml /app/share/mime/packages/org.yuzu_emu.yuzu.xml",
|
||||
"sed 's/yuzu/org.yuzu_emu.yuzu/g' -i /app/share/mime/packages/org.yuzu_emu.yuzu.xml"
|
||||
@ -240,6 +241,10 @@
|
||||
"type": "file",
|
||||
"path": "org.yuzu_emu.yuzu.metainfo.xml"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"path": "yuzu-launcher.sh"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"path": "compatibility_list.json"
|
||||
|
18
yuzu-launcher.sh
Executable file
18
yuzu-launcher.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/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
|
Loading…
x
Reference in New Issue
Block a user