Skip to content

Commit

Permalink
no ask for pass
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Feb 16, 2025
1 parent 022964a commit cb584e9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions functions/ToolScripts/emuDeckPlugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,7 @@ Plugins_checkPassword(){
local password=$1
if [ "$password" = "EmuDecky!" ]; then ## AppImage install when no sudo
#We create the password
yes "$password" | passwd $(whoami) &>/dev/null || {
read -r PASS <<< $(zenity --title="Decky Installer" --width=300 --height=100 --entry --hide-text --text="Enter your sudo/admin password so we can install Decky with the best plugins for emulation")
if [[ $? -eq 1 ]] || [[ $? -eq 5 ]]; then
exit 1
fi
if ( echo "$PASS" | sudo -S -k true ); then
password=$PASS
else
zenity --title="Decky Installer" --width=150 --height=40 --info --text "Incorrect Password"
fi
}
yes "$password" | passwd $(whoami) &>/dev/null
elif [ "$system" == "chimeraos" ]; then
password="gamer"
elif [ "$system" == "bazzite" ]; then
Expand Down

0 comments on commit cb584e9

Please sign in to comment.