You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/idea-community/files/idea-community-jdk.patch

12 lines
485 B

--- a/bin/idea.sh 2020-12-30 15:51:43.743936660 -0500
+++ b/bin/idea.sh 2020-12-30 17:58:16.759719538 -0500
@@ -66,6 +66,8 @@ PATHS_SELECTOR="IdeaIC2020.3"
# shellcheck disable=SC2154
if [ -n "$IDEA_JDK" ] && [ -x "$IDEA_JDK/bin/java" ]; then
JDK="$IDEA_JDK"
+else
+ JDK="/opt/openjdk-bin-11" && [[ -d "/opt/openjdk-11" ]] && JDK="/usr/lib64/openjdk-bin-11"
fi
if [ -z "$JDK" ] && [ -s "${XDG_CONFIG_HOME:-$HOME/.config}/${PRODUCT_VENDOR}/${PATHS_SELECTOR}/idea.jdk" ]; then