Skip to content

Commit

Permalink
Slightly better Linux launch script.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaphore committed Sep 5, 2023
1 parent 330c540 commit 9185358
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion distribution/files/launcher_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ if [ ! -x "$(command -v java)" ]; then
fi

# cd to the installation dir.
SCRIPT_DIR=$(dirname "$0")
# A good solution that can withstand symbolic links.
# https://stackoverflow.com/a/17744637/3802890
SCRIPT_DIR="$(dirname "$(readlink -f -- "$0")")"
cd "$SCRIPT_DIR" || exit 1

# Launch the app.
Expand Down

0 comments on commit 9185358

Please sign in to comment.