Finished the new dialogue functionality

This commit is contained in:
2025-05-04 17:09:28 +02:00
parent ecedbbb4ce
commit c4ae40c7bd
6 changed files with 65 additions and 20 deletions

View File

@@ -14,12 +14,14 @@ else
FAKE_ZENITY_RESPONSE=$(cat ~/.fake_zenity_response)
printf "%s" "$4"
if [[ $FAKE_ZENITY_RESPONSE == "yes_tmp" ]]; then
if [[ $FAKE_ZENITY_RESPONSE == "yes" ]]; then
exit "$ZENITY_YES"
elif [[ $FAKE_ZENITY_RESPONSE == "no" ]]; then
exit "$ZENITY_NO"
elif [[ $FAKE_ZENITY_RESPONSE == "yes" ]]; then
elif [[ $FAKE_ZENITY_RESPONSE == "yes_perm" ]]; then
exit "$((ZENITY_YES | ZENITY_PERM))"
elif [[ $FAKE_ZENITY_RESPONSE == "no_perm" ]]; then
exit "$((ZENITY_NO | ZENITY_PERM))"
fi
fi
fi