--- a/codesys-ide/codesys +++ b/codesys-ide/codesys @@ -14,6 +14,12 @@ # get first CODESYS profile and start the script with it profile=$(basename "$(ls -1 ~/.wine.cds/drive_c/CODESYS/CODESYS/Profiles/*.profile | head -n 1 | sed 's,.profile,,')") + +export DISPLAY=:90 +Xvfb :90 & +sleep 3 export WINEPREFIX=~/.wine.cds wine-development ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" --runscript="z:${BASEPATH}/${1}.py" --noUI +killall Xvfb +