Make winelauncher test for xmessage and warn the user if they don't

have it.
This commit is contained in:
Jeremy White 2001-01-17 01:47:18 +00:00 committed by Alexandre Julliard
parent ee21c443c6
commit 4aaaf41019
1 changed files with 21 additions and 1 deletions

View File

@ -45,7 +45,27 @@ COLOR=' -xrm *.Command.background:darkgrey
-xrm *.background:black'
XMESSAGE="xmessage $COLOR"
#------------------------------------------------------------------------------
# Locate either xmessage or gmessage, if we can.
#------------------------------------------------------------------------------
type xmessage >/dev/null 2>/dev/null
if [ $? -ne 0 ] ; then
echo "
Warning:
The CodeWeavers Wine launcher is unable to find xmessage.
This launcher script relies heavily on finding this tool,
and without it, it will behave poorly.
Most Linux distributions have one or the other of these
tools.
We strongly recommend that you use your distributions
software methods to locate xmessage."
else
XMESSAGE="xmessage $COLOR"
fi
#------------------------------------------------------------------------------