diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2008-02-25 23:54:36 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2008-02-25 23:54:36 +0000 |
commit | 053b7d28ae8abdc3b3c9911e632e60b8cf758f39 (patch) | |
tree | ffeeaaa346ec698cfab2820e1b713427f226178a | |
parent | Make eselect java-vm set foobar foobar throw an error. Fixes bug #211454. (diff) | |
download | java-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-tool | 4 |
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 |