diff --git a/data/fcitx5-configtool.sh b/data/fcitx5-configtool.sh index 6f5228b55..8f0a0d8a1 100755 --- a/data/fcitx5-configtool.sh +++ b/data/fcitx5-configtool.sh @@ -7,14 +7,14 @@ export TEXTDOMAIN=fcitx5 if command -v kdialog > /dev/null 2>&1; then message() { - kdialog --msgbox "$1" + kdialog --yesno "$1" } error() { kdialog --error "$1" } elif command -v zenity > /dev/null 2>&1; then message() { - zenity --info --text="$1" + zenity --question --text="$1" } error() { zenity --error --text="$1" @@ -138,6 +138,11 @@ run_xdg() { ;; esac + # user choose no + if [ $? -ne 0 ]; then + exit + fi + if command="$(command -v xdg-open 2>/dev/null)"; then exec "$command" "$HOME/.config/fcitx5" fi