summarylogtreecommitdiffstats
path: root/grayjay.sh
blob: a532a8013200d7f4b693887f59e8e3da8df02642 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env sh

#workdir="${XDG_DATA_HOME:-"$HOME/.local/share"}/Grayjay"
# the app is not currently properly following the XDG standard
workdir="$HOME/.local/share/Grayjay"
appdir='/opt/grayjay'

mkdir -p "${workdir}"
cd "${workdir}"

ln -sfT "${appdir}/wwwroot" "${workdir}/wwwroot"

exec /opt/grayjay/Grayjay "$@"