Diff of /codesys-ide/codesys [16685e] .. [220c38]  Maximize  Restore

Switch to unified view

a/codesys-ide/codesys b/codesys-ide/codesys
...
...
11
    echo "error: script '${BASEPATH}/${1}.py' not found."
11
    echo "error: script '${BASEPATH}/${1}.py' not found."
12
    exit -1
12
    exit -1
13
fi
13
fi
14
14
15
# get first CODESYS profile and start the script with it
15
# get first CODESYS profile and start the script with it
16
profile=$(basename "$(ls -1 ~/.wine.cds/drive_c/CODESYS/CODESYS/Profiles/*.profile | head -n 1 | sed 's,.profile,,')")
16
profile=$(basename "$(ls -1 ~/.wine.cds/drive_c/CODESYS/CODESYS/Profiles/*.profile | head -n 1 | sed 's,.profile,,')")
17
18
export DISPLAY=:90
19
Xvfb :90 &
20
sleep 3
17
export WINEPREFIX=~/.wine.cds
21
export WINEPREFIX=~/.wine.cds
18
wine-development ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" --runscript="z:${BASEPATH}/${1}.py" --noUI 
22
wine-development ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" --runscript="z:${BASEPATH}/${1}.py" --noUI 
23
killall Xvfb
24
19
25