#!/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 python3 ./simulator.py $1 $2 $3 $4 $5 $6 &