From 39038b50bd4c694e7e961d2e6126773f03ec8934 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 12 Jul 2023 20:16:14 +0200 Subject: [PATCH] add check on abort --- usr/bin/archboot-launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/archboot-launcher.sh b/usr/bin/archboot-launcher.sh index 21646be00..c9c51c5e0 100755 --- a/usr/bin/archboot-launcher.sh +++ b/usr/bin/archboot-launcher.sh @@ -32,12 +32,12 @@ _dolauncher() { update | grep -q Xfce && _LAUNCHER="${_LAUNCHER} XFCE Xfce" ABORT="" _dialog --title " Desktop Menu " --menu "" 10 40 6 ${_LAUNCHER} 2>${_ANSWER} || _ABORT=1 + [[ -e /tmp/.launcher-running ]] && rm /tmp/.launcher-running if [[ -n "${_ABORT}" ]]; then clear exit 1 fi _EXIT="$(cat ${_ANSWER})" - [[ -e /tmp/.launcher-running ]] && rm /tmp/.launcher-running if [[ "${_EXIT}" == "GNOME" ]]; then _dialog --defaultno --yesno "Gnome Desktop:\nDo you want to use the Wayland Backend?" 6 40 if [[ $? -eq 0 ]]; then