You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asking for the password should be one of the first steps during an install not one of the last.
Just now I install mullvad vpn, which is a very long install process. Naturally I step away from the PC or go to another window. Then when I come back install has 'failed' because I did not enter the password. It would be a lot better if yay asked for password when you start an install not the end.
The text was updated successfully, but these errors were encountered:
I might be incorrect here, but isn't it Pacman which is asking for the password? If that's true, it would mean Yay would need to keep the password somewhere (probably just in-memory) and find a way to feed it into Pacman when it calls for it, right?
I can't imagine there's going to be a nice way around that, at least with my understanding.
@AlanDavison A better way would probably be to increase the sudo timeout before it asks for the password again
you can add the following to the sudoers file to increase the timeout for just pacman
Personally I insert the path to a custom shell script under "sudobin" key in ~/.config/yay/config.json with something like the following:
# check if credentials are needed and prompt the user to continuefunctioncheck_sudo() {
if
sudo -n -i :&> /dev/null;thenreturn 0 # sudo is not needed, installation will proceed normallyelse
abeep -f 400 -l 250 &# sound a beep
notify_user &# raise a notification messageecho"Press enter to continue to sudo"builtinread -r
fi
}
functionmain() {
check_sudo
}
main "$@"
When the shell script then determines that sudo is needed it beeps, X notifies the user & show a prompt that require hitting Enter before actually running sudo thus allowing for a finished build to wait infinitely until the user gets back to it.
Asking for the password should be one of the first steps during an install not one of the last.
Just now I install mullvad vpn, which is a very long install process. Naturally I step away from the PC or go to another window. Then when I come back install has 'failed' because I did not enter the password. It would be a lot better if yay asked for password when you start an install not the end.
The text was updated successfully, but these errors were encountered: