diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2006-09-20 03:36:59 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2006-09-20 03:36:59 +0000 |
commit | aebb0f60e985ba6ded65c21718bdfbe844a9c59d (patch) | |
tree | ca6fe901c871a58cc797477ca7770f9467757f99 /graphics/mapyrus/files | |
parent | ffb2ab569dbec2264b32db9181cfbf2aea6372a1 (diff) | |
download | ports-aebb0f60e985ba6ded65c21718bdfbe844a9c59d.tar.gz ports-aebb0f60e985ba6ded65c21718bdfbe844a9c59d.zip |
Notes
Diffstat (limited to 'graphics/mapyrus/files')
-rw-r--r-- | graphics/mapyrus/files/mapyrus.in | 7 | ||||
-rw-r--r-- | graphics/mapyrus/files/pkg-message.in | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/graphics/mapyrus/files/mapyrus.in b/graphics/mapyrus/files/mapyrus.in index da1a60f328ff..760817eabe27 100644 --- a/graphics/mapyrus/files/mapyrus.in +++ b/graphics/mapyrus/files/mapyrus.in @@ -1,4 +1,9 @@ #!/bin/sh # $FreeBSD$ +if [ -z "${DISPLAY}" ]; then + JAVA_AWT_HEADLESS="-Djava.awt.headless=true" +else + JAVA_AWT_HEADLESS="" +fi JAVA_VERSION="%%JAVA_VERSION%%" \ - exec "%%LOCALBASE%%/bin/java" -jar "%%DATADIR%%/%%MAPYRUSJAR%%" "$@" + exec "%%LOCALBASE%%/bin/java" "${JAVA_AWT_HEADLESS}" -jar "%%DATADIR%%/%%MAPYRUSJAR%%" "$@" diff --git a/graphics/mapyrus/files/pkg-message.in b/graphics/mapyrus/files/pkg-message.in index 0c3c693dfb57..4d41d677f4d3 100644 --- a/graphics/mapyrus/files/pkg-message.in +++ b/graphics/mapyrus/files/pkg-message.in @@ -4,6 +4,9 @@ java -classpath %%DATADIR%%/%%MAPYRUSJAR%% org.mapyrus.Mapyrus myfile.mapyrus +(If a real X-Windows display is not available, use the +-Djava.awt.headless=true startup variable). + or simply: mapyrus myfile.mapyrus |