15 lines
445 B
Bash
15 lines
445 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
## sourced from archlinux
|
||
|
## https://git.archlinux.org/svntogit/community.git/tree/trunk/idea.sh?h=packages/intellij-idea-community-edition
|
||
|
|
||
|
# WARNING:
|
||
|
# Running IntelliJ IDEA with java other than java 11
|
||
|
# may cause various problems, such as Gradle import not working
|
||
|
if [ -z "$IDEA_JDK" ] ; then
|
||
|
IDEA_JDK="/usr/lib/java/openjdk11-jdk"
|
||
|
fi
|
||
|
exec env IDEA_JDK="$IDEA_JDK" /usr/lib/intellij-idea/bin/idea.sh "$@"
|
||
|
|
||
|
# vim: ts=2 sw=2 et:
|