mirror of
https://github.com/bakustarver/rpgmakermlinux-cicpoffs.git
synced 2025-06-08 18:25:55 +02:00
35 lines
976 B
Bash
35 lines
976 B
Bash
#!/bin/bash
|
|
|
|
if [[ ! -z "${LD_PRELOAD}" ]]; then
|
|
echo "LD_PRELOAD found with $LD_PRELOAD"
|
|
export ORIGINAL_LD_PRELOAD="$LD_PRELOAD"
|
|
export LD_PRELOAD=""
|
|
# export PATH=""
|
|
fi
|
|
export LD_LIBRARY_PATH=""
|
|
# DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
if [[ $2 == *"iscriptevaluator.exe"* ]]; then
|
|
echo "ignoring iscriptevaluator.exe"
|
|
exit 0
|
|
fi
|
|
if [ -z "$SteamAppId" ]; then
|
|
echo "no steam app id, exiting"
|
|
exit 0
|
|
fi
|
|
|
|
|
|
export LC_ALL=""
|
|
startset=$(echo "$@" | sed -e 's@waitforexitandrun @@g' -e 's@ --in-process-gpu@@g')
|
|
export gamef=$(dirname "$startset")
|
|
|
|
# zenity --error --text "$gamef"
|
|
|
|
if [ -f "$HOME/desktopapps/nwjs/nwjs/packagefiles/nwjsstart-cicpoffs.sh" ]; then
|
|
$HOME/desktopapps/nwjs/nwjs/packagefiles/nwjsstart-cicpoffs.sh --gui
|
|
else
|
|
##steam's xgd-open stopped working, using default
|
|
NEWPATH=$(echo "$PATH" | tr ':' '\n' | grep -v "steam-run" | tr '\n' ':')
|
|
export PATH=$NEWPATH
|
|
xdg-open "rpgmakermp:///$gamef"
|
|
fi
|