mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 17:26:22 +00:00
- make sure even GUI users notice a "missing xmessage" problem by
checking for tons of X11 editors - replace duplicated (3x) code with function launch_winesetup() - improved "winesetup not found" error message - break looping (via code 127) in case no xmessage installed - stress the fact that people should remember that they can regain certain settings by deleting flag files - spelling fixes
This commit is contained in:
parent
78c4dd349c
commit
02ecbd1939
|
@ -57,23 +57,64 @@ COLOR=' -xrm *.Command.background:darkgrey
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
type xmessage >/dev/null 2>/dev/null
|
type xmessage >/dev/null 2>/dev/null
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
echo "
|
# xmessage not found; make sure the user notices this error
|
||||||
|
# (GUI users wouldn't even notice if we printed the text on console !)
|
||||||
|
MSGFILE=/tmp/WINE_CANNOT_FIND_XMESSAGE
|
||||||
|
cat > $MSGFILE << EOF
|
||||||
Warning:
|
Warning:
|
||||||
The Wine launcher is unable to find xmessage.
|
The Wine launcher is unable to find the xmessage program,
|
||||||
|
which it needs to properly notify you of Wine execution status
|
||||||
|
or problems.
|
||||||
|
|
||||||
This launcher script relies heavily on finding this tool,
|
This launcher script relies heavily on finding this tool,
|
||||||
and without it, it will behave poorly.
|
and without it, it will behave very poorly.
|
||||||
|
|
||||||
Most Linux distributions have one or the other of these
|
We strongly recommend that you use your distribution's
|
||||||
tools.
|
software methods to locate xmessage, or alternatively
|
||||||
|
use your favourite internet search engine to find out
|
||||||
|
how you are supposed to install xmessage on your system.
|
||||||
|
EOF
|
||||||
|
|
||||||
We strongly recommend that you use your distribution's
|
# try to display message file with tons of different X11 editors
|
||||||
software methods to locate xmessage."
|
# until we find one that's installed and working
|
||||||
|
for EDITPRG in nedit gedit kedit gvim xemacs; do
|
||||||
|
type $EDITPRG >/dev/null 2>/dev/null
|
||||||
|
if [ $? -eq 0 ] ; then
|
||||||
|
# execute editor and exit if successful
|
||||||
|
$EDITPRG $MSGFILE && exit
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# ok, we really give up now, this system is hosed ;-)
|
||||||
|
cat $MSGFILE
|
||||||
else
|
else
|
||||||
XMESSAGE="xmessage $COLOR"
|
XMESSAGE="xmessage $COLOR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
launch_winesetup()
|
||||||
|
{
|
||||||
|
which winesetup
|
||||||
|
if [ $? -eq 0 ] ; then
|
||||||
|
winesetup
|
||||||
|
else
|
||||||
|
if [ -x /opt/wine/bin/winesetup ] ; then
|
||||||
|
/opt/wine/bin/winesetup
|
||||||
|
else
|
||||||
|
$XMESSAGE -title "Error" \
|
||||||
|
"Error: Unable to find winesetup in your PATH or in /opt/wine/bin:
|
||||||
|
I am not able to configure Wine.
|
||||||
|
|
||||||
|
If winesetup is being distributed in a separate package
|
||||||
|
that is not installed yet on your system, then please install this
|
||||||
|
package.
|
||||||
|
winesetup can also be downloaded from www.codeweavers.com.
|
||||||
|
|
||||||
|
If you choose to not use winesetup for configuration, then
|
||||||
|
you can find information on how to prepare a Wine config file manually
|
||||||
|
in the Wine README / README.gz file or in the Wine User Guide."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# We're going to do a lot of fancy footwork below.
|
# We're going to do a lot of fancy footwork below.
|
||||||
|
@ -212,12 +253,13 @@ if [ $no_args -eq 1 ] ; then
|
||||||
|
|
||||||
You have started Wine without specifying any arguments.
|
You have started Wine without specifying any arguments.
|
||||||
|
|
||||||
Wine requires a least one argument - the name of the Windows
|
Wine requires at least one argument - the name of the Windows
|
||||||
application you would like to run.
|
application you would like to run.
|
||||||
|
|
||||||
If you have launched this through the KDE menu system,
|
If you have launched this through the KDE menu system
|
||||||
you can use the KDE file browser to select a Windows
|
and your KDE installation is specially configured for Wine,
|
||||||
exectuable and then click on it to launch Wine with
|
then you can use the KDE file browser to select a Windows
|
||||||
|
executable and then click on it to launch Wine with
|
||||||
that application.
|
that application.
|
||||||
|
|
||||||
You can similarly use the GNOME file manager to
|
You can similarly use the GNOME file manager to
|
||||||
|
@ -233,16 +275,7 @@ if [ $no_args -eq 1 ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $welcome_rc -eq 2 ] ; then
|
if [ $welcome_rc -eq 2 ] ; then
|
||||||
which winesetup
|
launch_winesetup
|
||||||
if [ $? -eq 0 ] ; then
|
|
||||||
winesetup
|
|
||||||
else
|
|
||||||
if [ -x /opt/wine/bin/winesetup ] ; then
|
|
||||||
/opt/wine/bin/winesetup
|
|
||||||
else
|
|
||||||
$XMESSAGE -title "Error" "Error: Unable to find winesetup in your PATH or in /opt/wine/bin"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -276,7 +309,7 @@ while [ $conf -eq 0 ] ; do
|
||||||
-title "Welcome to Wine" \
|
-title "Welcome to Wine" \
|
||||||
"
|
"
|
||||||
|
|
||||||
You have started Wine but we cannot find a Wine
|
You have started Wine, but we cannot find a Wine
|
||||||
configuration file.
|
configuration file.
|
||||||
|
|
||||||
This is normal if you have never run Wine before.
|
This is normal if you have never run Wine before.
|
||||||
|
@ -294,16 +327,12 @@ while [ $conf -eq 0 ] ; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $init_rc -eq 2 ] ; then
|
if [ $init_rc -eq 2 ] ; then
|
||||||
which winesetup
|
launch_winesetup
|
||||||
if [ $? -eq 0 ] ; then
|
fi
|
||||||
winesetup
|
|
||||||
else
|
# 127 == xmessage not available
|
||||||
if [ -x /opt/wine/bin/winesetup ] ; then
|
if [ $init_rc -eq 127 ] ; then
|
||||||
/opt/wine/bin/winesetup
|
exit
|
||||||
else
|
|
||||||
$XMESSAGE -title "Error" "Error: Unable to find winesetup in your PATH or in /opt/wine/bin"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
@ -320,14 +349,16 @@ if [ $use_info_message -ne 0 ] ; then
|
||||||
This dialog box is a temporary status dialog to let you know
|
This dialog box is a temporary status dialog to let you know
|
||||||
that Wine is attempting to launch your application.
|
that Wine is attempting to launch your application.
|
||||||
|
|
||||||
Since Wine is still very much in a development stage, many
|
Since Wine is still very much in a development stage,
|
||||||
applications will fail silently. This dialog box is your indication
|
many applications will fail silently.
|
||||||
|
This dialog box is your indication
|
||||||
that we're *trying* to run your application.
|
that we're *trying* to run your application.
|
||||||
|
|
||||||
This dialog box will automatically disappear after 30 seconds,
|
This dialog box will automatically disappear after 30 seconds,
|
||||||
or after your application finishes.
|
or after your application finishes.
|
||||||
|
|
||||||
You can permanently disable this dialog by selecting the option below.
|
You can permanently disable this dialog by selecting
|
||||||
|
the option below.
|
||||||
" &
|
" &
|
||||||
info_message_pid=$!
|
info_message_pid=$!
|
||||||
fi
|
fi
|
||||||
|
@ -356,11 +387,12 @@ clean_up_info_message ()
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
if [ $info_return -eq 3 ] ; then
|
if [ $info_return -eq 3 ] ; then
|
||||||
$XMESSAGE -title "Wine Prelaunch Control" \
|
$XMESSAGE -title "Wine Prelaunch Control" \
|
||||||
"Wine will now disable the prelaunch Window you just saw.
|
"Wine will now disable the prelaunch window you just saw.
|
||||||
You will no longer be notified when Wine is attempting
|
You will no longer be notified when Wine is attempting
|
||||||
to start a Windows application.
|
to start a Windows application.
|
||||||
|
|
||||||
You can reenable this Window by removing the $info_flag file." -buttons " Okay ":0," Cancel ":1
|
Please take note that you can reenable this window
|
||||||
|
by removing the $info_flag file." -buttons " Okay ":0," Cancel ":1
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
touch $info_flag
|
touch $info_flag
|
||||||
fi
|
fi
|
||||||
|
@ -486,16 +518,7 @@ You may view this file by selecting View Log, below."
|
||||||
# Process a configure instruction
|
# Process a configure instruction
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
if [ $debug_return -eq 4 ] ; then
|
if [ $debug_return -eq 4 ] ; then
|
||||||
which winesetup
|
launch_winesetup
|
||||||
if [ $? -eq 0 ] ; then
|
|
||||||
winesetup
|
|
||||||
else
|
|
||||||
if [ -x /opt/wine/bin/winesetup ] ; then
|
|
||||||
/opt/wine/bin/winesetup
|
|
||||||
else
|
|
||||||
$XMESSAGE -title "Error" "Error: Unable to find winesetup in your PATH or in /opt/wine/bin"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
continue;
|
continue;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -522,7 +545,8 @@ You may view this file by selecting View Log, below."
|
||||||
You will no longer be notified when Wine fails to start a
|
You will no longer be notified when Wine fails to start a
|
||||||
Windows application.
|
Windows application.
|
||||||
|
|
||||||
You can reenable this Window by removing the $debug_flag file." -buttons " Okay ":0," Cancel ":1
|
Please take note that you can reenable this window
|
||||||
|
by removing the $debug_flag file." -buttons " Okay ":0," Cancel ":1
|
||||||
|
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
touch $debug_flag
|
touch $debug_flag
|
||||||
|
|
Loading…
Reference in a new issue