blob: 6d1423d28d89f9e61fd7d060e220a1c9f45b0a50 (
plain)
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
|
#!/bin/sh
JAVA_EXEC=""
APP_ARGS=""
if [ -n "$JAVA_HOME" ]; then
if [ -x "$JAVA_HOME/bin/java" ]; then
JAVA_EXEC="$JAVA_HOME/bin/java"
fi
else
JAVA_EXEC="$(which java)"
fi
if [ -z "$JAVA_EXEC" ]; then
echo "No 'java' executable can be found, please set JAVA_HOME variable or"
echo "use the 'archlinux-java' script to set the Java version."
exit 1
fi
if [ $# -gt 0 ]
then
APP_ARGS="-open"
fi
"$JAVA_EXEC" -jar /usr/share/kontalk/KontalkDesktopApp.jar "$APP_ARGS" "$@"
|