read -r PASSWD <<<"$(zenity --password --title="Password Entry" --text="Enter you user sudo password to install required depencies" 2>/dev/null)"
echo"$PASSWD"| sudo -v -S
ans=$?
if[[$ans==1]];then
#incorrect password
read -r PASSWD <<<"$(zenity --password --title="Password Entry" --text="Password was incorrect. Try again. (Did you remember to set a password for linux before running this?)" 2>/dev/null)"
echo"$PASSWD"| sudo -v -S
ans=$?
if[[$ans==1]];then
text="$(printf"<b>Password not accepted.</b>\n Expert mode tools which require a password will not work. Disabling them.")"
log_err "Your Linux distro $linuxID is not supported by this script. We invite to open a PR or help us with adding your OS to this script. https://github.com/dragoonDorise/EmuDeck/issues"
exit1
fi
# this could be replaced to immediately start the EmuDeck setup script
echo"All prerequisite packages have been installed. EmuDeck will be installed now!"