blob: 160f90e64af0ffbb2669ab4c744b0c4ef165409c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
# Allow users to override command-line options
if [[ -f $XDG_CONFIG_HOME/yass-reloaded.conf ]]; then
YASS_RELOADED_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/yass-reloaded-flags.conf | tr '\n' ' ')"
fi
# prefer new java version
export PATH="/usr/lib/jvm/java-22-openjdk/bin/:$PATH"
java --module-path "/usr/lib/jvm/java-22-openjfx/lib" --add-modules "javafx.base,javafx.web,javafx.graphics,javafx.fxml,javafx.media,javafx.swing,javafx.controls" -jar "/usr/share/java/yass-reloaded.jar" "$@" $YASS_RELOADED_USER_FLAGS
|