@@ -704,7 +704,8 @@ chooseInstallMethod() {
704
704
705
705
# Add AppImage to list
706
706
if [[ " ${DIALOG} " == " whiptail" ]] || [[ " ${DIALOG} " == " dialog" ]]; then
707
- WINEBIN_OPTIONS+=(" AppImage" " ${APPDIR_BINDIR} /${WINE64_APPIMAGE_FULL_FILENAME} " ON)
707
+ # NOTE: The missing quotations in this array are intentional and accounted for below.
708
+ WINEBIN_OPTIONS+=(" AppImage ${APPDIR_BINDIR} /${WINE64_APPIMAGE_FULL_FILENAME} " " AppImage of Wine64 ${WINE64_APPIMAGE_FULL_VERSION} " ON)
708
709
elif [[ " ${DIALOG} " == " zenity" ]]; then
709
710
WINEBIN_OPTIONS+=(TRUE " AppImage" " AppImage of Wine64 ${WINE64_APPIMAGE_FULL_VERSION} " " ${APPDIR_BINDIR} /${WINE64_APPIMAGE_FULL_FILENAME} " )
710
711
elif [[ " ${DIALOG} " == " kdialog" ]]; then
@@ -723,11 +724,11 @@ chooseInstallMethod() {
723
724
724
725
if [[ " $WINEOPT " == * " /usr/bin/" * ]]; then
725
726
WINEOPT_CODE=" System"
726
- WINEOPT_DESCRIPTION=" \" Use system's binary (i.e., /usr/bin/wine64). WINE must be 7.18-staging or later. Stable or Devel do not work.\" "
727
+ WINEOPT_DESCRIPTION=" \" Use the system binary (i.e., /usr/bin/wine64). WINE must be 7.18-staging or later. Stable or Devel do not work.\" "
727
728
WINEOPT_PATH=" ${line} "
728
729
elif [[ " $WINEOPT " == * " Proton" * ]]; then
729
730
WINEOPT_CODE=" Proton"
730
- WINEOPT_DESCRIPTION=" \" Install using Steam's Proton fork of WINE.\" "
731
+ WINEOPT_DESCRIPTION=" \" Install using the Steam Proton fork of WINE.\" "
731
732
WINEOPT_PATH=" ${line} "
732
733
elif [[ " $WINEOPT " == * " PlayOnLinux" * ]]; then
733
734
WINEOPT_CODE=" PlayOnLinux"
@@ -741,7 +742,8 @@ chooseInstallMethod() {
741
742
742
743
# Create wine binary option array
743
744
if [[ " ${DIALOG} " == " whiptail" ]] || [[ " ${DIALOG} " == " dialog" ]]; then
744
- WINEBIN_OPTIONS+=(" ${WINEOPT_CODE} " " ${WINEOPT_PATH} " OFF)
745
+ # NOTE: The missing quotations in this array are intentional and accounted for below.
746
+ WINEBIN_OPTIONS+=(" ${WINEOPT_CODE} ${WINEOPT_PATH} " " ${WINEOPT_DESCRIPTION} " OFF)
745
747
elif [[ " ${DIALOG} " == " zenity" ]]; then
746
748
WINEBIN_OPTIONS+=(FALSE " ${WINEOPT_CODE} " " ${WINEOPT_DESCRIPTION} " " ${WINEOPT_PATH} " )
747
749
elif [[ " ${DIALOG} " == " kdialog" ]]; then
@@ -760,7 +762,7 @@ chooseInstallMethod() {
760
762
installationChoice=$( $DIALOG --backtitle " ${BACKTITLE} " --title " ${TITLE} " --radiolist " ${QUESTION_TEXT} " 0 0 " ${WINEBIN_OPTIONS_LENGTH} " " ${WINEBIN_OPTIONS[@]} " 3>&1 1>&2 2>&3 3>& - )
761
763
read -r -a installArray <<< " ${installationChoice}"
762
764
WINEBIN_CODE=$( echo " ${installArray[0]} " | awk -F' ' ' {print $1}' ) ; export WINEBIN_CODE
763
- WINE_EXE=$( echo " ${installArray[1 ]} " | awk -F' ' ' {print $2}' ) ; export WINE_EXE
765
+ WINE_EXE=$( echo " ${installArray[0 ]} " | awk -F' ' ' {print $2}' ) ; export WINE_EXE
764
766
elif [[ " ${DIALOG} " == " zenity" ]]; then
765
767
column_names=(--column " Choice" --column " Code" --column " Description" --column " Path" )
766
768
installationChoice=$( zenity --width=1024 --height=480 \
@@ -804,12 +806,6 @@ beginInstall() {
804
806
fi
805
807
if [ -n " ${WINEBIN_CODE} " ]; then
806
808
case " ${WINEBIN_CODE} " in
807
- " System" |" Proton" |" PlayOnLinux" |" Custom" )
808
- verbose && echo " Installing ${FLPRODUCT} Bible ${TARGETVERSION} using a ${WINEBIN_CODE} WINE64 binary…"
809
- if [ -z " ${REGENERATE} " ]; then
810
- make_skel " none.AppImage"
811
- fi
812
- ;;
813
809
" AppImage" * )
814
810
check_libs libfuse;
815
811
verbose && echo " Installing ${FLPRODUCT} Bible ${TARGETVERSION} using ${WINE64_APPIMAGE_FULL_VERSION} AppImage…"
@@ -826,6 +822,12 @@ beginInstall() {
826
822
export WINE_EXE=" ${APPDIR_BINDIR} /wine64"
827
823
fi
828
824
;;
825
+ " System" |" Proton" |" PlayOnLinux" |" Custom" )
826
+ verbose && echo " Installing ${FLPRODUCT} Bible ${TARGETVERSION} using a ${WINEBIN_CODE} WINE64 binary…"
827
+ if [ -z " ${REGENERATE} " ]; then
828
+ make_skel " none.AppImage"
829
+ fi
830
+ ;;
829
831
* )
830
832
logos_error " WINEBIN_CODE error. Installation canceled!"
831
833
esac
0 commit comments