script for launching Play Palace added.
This commit is contained in:
19
home/stormux/.playpalace
Executable file
19
home/stormux/.playpalace
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
gameDir="$HOME/.local/games/PlayPalace11/clients/desktop"
|
||||
hostPythonDir="$gameDir/.host-python"
|
||||
|
||||
if [[ ! -d "$gameDir" ]]; then
|
||||
echo "Play Palace is not installed at $gameDir."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$gameDir"
|
||||
|
||||
if [[ -d "$hostPythonDir" ]]; then
|
||||
export PYTHONPATH="$hostPythonDir${PYTHONPATH:+:$PYTHONPATH}"
|
||||
fi
|
||||
|
||||
exec uv run python client.py
|
||||
Reference in New Issue
Block a user