diff options
author | Giovanni Santini | 2023-02-07 10:46:30 +0100 |
---|---|---|
committer | Giovanni Santini | 2023-02-07 10:46:30 +0100 |
commit | 9606ee4397fc27e22917dd70ba1d2572acfa8bbc (patch) | |
tree | 57c0bc7cdf3a31c60ed1021902a080b4aa1a53fd /crystal-launcher.sh | |
parent | a427839a01b08041bddb50f5ae408c9d3627b642 (diff) | |
download | aur-9606ee4397fc27e22917dd70ba1d2572acfa8bbc.tar.gz |
upgpkg: crystal-launcher 20230116-1
- Version bump.
- Major package analysis to make this to work.
Diffstat (limited to 'crystal-launcher.sh')
-rwxr-xr-x | crystal-launcher.sh | 39 |
1 files changed, 15 insertions, 24 deletions
diff --git a/crystal-launcher.sh b/crystal-launcher.sh index d58f853eb35d..e854c4a15199 100755 --- a/crystal-launcher.sh +++ b/crystal-launcher.sh @@ -2,28 +2,19 @@ # Based on: # https://wiki.archlinux.org/title/Java_package_guidelines -# Force installation in the standard path -CL_INST_CONF="$HOME/.crystalinst" -if [ ! -f $CL_INST_CONF ] -then - touch "$CL_INST_CONF" - echo "$HOME/Crystal-Launcher" > "$CL_INST_CONF" -fi - -# At the first time set up the proper JREs in the config file -JAVA_8="%JAVA_8%" -JAVA_16="%JAVA_16%" - -CL_CONFIG="`cat $CL_INST_CONF`/config.prop" -if [ ! -f $CL_CONFIG ] -then - touch $CL_CONFIG - echo "customjvmdir_v2.path=/usr/lib/jvm/$JAVA_8/jre/bin/java" > "$CL_CONFIG" - echo "customjvmdir_v2.use=true" >> "$CL_CONFIG" - echo "customjvmdir_v3.path=/usr/lib/jvm/$JAVA_16/bin/java" >> "$CL_CONFIG" - echo "customjvmdir_v3.use=true" >> "$CL_CONFIG" -fi - -# Run the app correctly -exec /usr/bin/java -jar '/usr/share/java/crystal-launcher.jar' "$@" +# Force execution in the standard path +mkdir -p "$HOME/Crystal-Launcher" +cd "$HOME/Crystal-Launcher" +# Run the app correctly, using most of the parameters +# inside the reverse engineered launcher +exec /usr/bin/java \ + -Dfile.encoding=UTF-8 \ + -Djava.net.preferIPv4Stack=true \ + -Dprism.forceGPU=true \ + -Dprism.verbose=true \ + -Xmx256M \ + -Xms128M \ + --add-opens java.desktop/sun.awt.X11=ALL-UNNAMED \ + -cp '/usr/share/java/crystal-launcher.jar' \ + ovh.leszczu8023.crystalwrapper.Main "$@" |