Здравствуйте. Как оставить открытым окно в kdialog --menu после нажатия кнопки?
#!/bin/bash
choice=$(kdialog --menu "CHOOSE
ONE:" 1 "RED" 2 "YELLOW" 3 "GREEN");
if [ "$?" = 0 ]; then
if [ "$choice" = 1 ]; then
kdialog --msgbox "YOU CHOSE RED";
elif [ "$choice" = 2 ]; then
kdialog --msgbox "YOU CHOSE YELLOW";
elif [ "$choice" = 3 ]; then
kdialog --msgbox "YOU CHOSE GREEN";
else
kdialog --error "ERROR";
fi;
elif [ "$?" = 1 ];then
kdialog --sorry "YOU CHOSE CANCEL" | exec
else
kdialog --error "ERROR";
fi;