#!/bin/sh ### Varialbes ### Functions realPath() { local filename="$1" if [ -L "$filename" ]; then local linkinfo=$(readlink $filename) local filepath=$(dirname $linkinfo) echo $filepath else echo $(dirname "$0") fi } ### Main cd $(realPath "$0") export QT_QPA_PLATFORM=xcb export XDG_SESSION_TYPE=xcb #### PySide6 QT paths as does not have all base QT6_12 dependencies. #### Would need to make a custom build or add the below exports export PATH="/home/leahi/.local/bin:$PATH" export LD_LIBRARY_PATH="/home/leahi/.local/lib/python3.12/site-packages/PySide6/Qt/lib:$LD_LIBRARY_PATH" python3 ./simulator.py $1 $2 $3 $4 $5 $6 &