Mercurial > cgi-bin > hgweb.cgi > JpegWasher
view package-files/linux/jpegwasher @ 35:bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
author | David Barts <n5jrn@me.com> |
---|---|
date | Thu, 30 Apr 2020 21:22:30 -0700 |
parents | d175593317a8 |
children |
line wrap: on
line source
#!/bin/sh # # Runs JpegWasher. Adopted from a similar script in the jEdit distribution. # # Find a java installation. if [ -z "${JAVA_HOME}" ]; then echo 'Warning: $JAVA_HOME environment variable not set! Consider setting it.' echo ' Attempting to locate java...' j=`which java 2>/dev/null` if [ -z "$j" ]; then echo "Failed to locate the java virtual machine! Bailing..." exit 1 else echo "Found a virtual machine at: $j..." JAVA="$j" fi else JAVA="${JAVA_HOME}/bin/java" fi # Antialias menus and dockable text: ANTIALIAS_ALL="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true" # Launch application. exec "${JAVA}" ${ANTIALIAS_ALL} -jar "/usr/share/jpegwasher/@jar.filename@"