forked from igvteam/igv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathigv.command
executable file
·42 lines (38 loc) · 1.53 KB
/
igv.command
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
#This script is intended for launching on Macs
#It may or may not work on *nix, definitely not on windows
#-Xmx4g indicates 4 gb of memory.
#To adjust this (or other Java options), edit the "$HOME/.igv/java_arguments"
#file. For more info, see the README at
#https://raw.githubusercontent.com/igvteam/igv/master/scripts/readme.txt
#apple.laf.useScreenMenuBar for Macs, to put menu bar at top of screen
#-Xdock:name again for Macs, sets the name in menu bar
#Add the flag -Ddevelopment = true to use features still in development
prefix=`dirname $(readlink $0 || echo $0)`
# Check whether or not to use the bundled JDK
if [ -d "${prefix}/jdk-11" ]; then
echo echo "Using bundled JDK."
JAVA_HOME="${prefix}/jdk-11"
PATH=$JAVA_HOME/bin:$PATH
else
echo "Using system JDK."
fi
# Check if there is a user-specified Java arguments file
if [ -e "$HOME/.igv/java_arguments" ]; then
java -showversion --module-path="${prefix}/lib" -Xmx8g \
@"${prefix}/igv.args" \
-Xdock:name="IGV" \
-Xdock:icon="${prefix}/IGV_64.png" \
-Dapple.laf.useScreenMenuBar=true \
-Djava.net.preferIPv4Stack=true \
@"$HOME/.igv/java_arguments" \
--module=org.igv/org.broad.igv.ui.Main "$@"
else
java -showversion --module-path="${prefix}/lib" -Xmx8g \
@"${prefix}/igv.args" \
-Xdock:name="IGV" \
-Xdock:icon="${prefix}/IGV_64.png" \
-Dapple.laf.useScreenMenuBar=true \
-Djava.net.preferIPv4Stack=true \
--module=org.igv/org.broad.igv.ui.Main "$@"
fi