blob: 0c2853eade01f2db44af45e811b5ac8953b3b755 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
# We need to increase the open file limit otherwise the game eventually crashes
# or softlocks with the log pointing to IOExceptions refering to "too many open
# files".
ulimit -Sn 8192
# As a temporary solution, copy the game directory to a user directory.
# This is necessary because the game requires write permissions to its directory
# from the current user.
# The copied game directory will be automatically removed when the game is closed.
# If anyone knows of a better solution, please let me know.
cp -r "/opt/yarg/" "$HOME/.local/share/yarg" && \
"$HOME/.local/share/yarg/YARG" && \
rm -rf "$HOME/.local/share/yarg"
|