From 72a4fe0241e7a2ee739d91f2c37f6512dd14a3a4 Mon Sep 17 00:00:00 2001 From: tigro Date: Tue, 10 Sep 2024 13:13:48 +0300 Subject: [PATCH] If window was killed setup Classic mode --- gnome-flavour-selector.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnome-flavour-selector.sh b/gnome-flavour-selector.sh index 4dacdea..fa3c3f5 100755 --- a/gnome-flavour-selector.sh +++ b/gnome-flavour-selector.sh @@ -87,6 +87,11 @@ MODE=$(GDK_BACKEND=x11 yad \ "${table[@]}" ) +# Workarround for window kill +if [ $? -ne 20 ]; then + MODE="Classic" +fi + if [ -z $MODE ]; then exit 1 fi