summarylogtreecommitdiffstats
path: root/camunda-modeler.sh
blob: 0dfcf4270e925135cc647812581117c321416090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

PRG=$0
while [ -h "$PRG" ]; do
    ls=$(ls -ld "$PRG")
    link=$(expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null)
    if expr "$link" : '^/' 2> /dev/null >/dev/null; then
        PRG="$link"
    else
        PRG="$(dirname "$PRG")/$link"
    fi
done

PRG="$(dirname "$PRG")/camunda-modeler"
session_type="${XDG_SESSION_TYPE:-x11}"
if [ "$session_type" = "wayland" ]
then
    "$PRG" --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"
else
    "$PRG" "$@"
fi