aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2008-02-25 23:54:36 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2008-02-25 23:54:36 +0000
commit053b7d28ae8abdc3b3c9911e632e60b8cf758f39 (patch)
treeffeeaaa346ec698cfab2820e1b713427f226178a
parentMake eselect java-vm set foobar foobar throw an error. Fixes bug #211454. (diff)
downloadjava-config-053b7d28ae8abdc3b3c9911e632e60b8cf758f39.tar.gz
java-config-053b7d28ae8abdc3b3c9911e632e60b8cf758f39.tar.bz2
java-config-053b7d28ae8abdc3b3c9911e632e60b8cf758f39.zip
Add notify-send notification when a wrapper is not provided by the selected vm.
svn path=/projects/java-config-2/trunk/; revision=6040
-rw-r--r--src/run-java-tool4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/run-java-tool b/src/run-java-tool
index 7ec2fcf..a828c9a 100644
--- a/src/run-java-tool
+++ b/src/run-java-tool
@@ -38,6 +38,10 @@ else
else
echo "* ${tool} is not available for ${vm_handle} on $(uname -m)" >&2
echo "* IMPORTANT: some Java tools are not available on some VMs on some architectures" >&2
+ if (( ${EUID} != 0 )) && [[ "${DISPLAY}" ]] && type -p notify-send > /dev/null; then
+ notify-send -i java-icon48 "Gentoo Java Launcher" "${tool} is not available for ${vm_handle}
+<a href=\"http://www.gentoo.org/doc/en/java.xml\">Gentoo Java User Guide</a>"
+ fi
fi
fi
exit 1