#Refer: How to enter the Default Keyring password via the command line? - Ask Ubuntu
I am asking this question here as I am not using Ubuntu and also the solution mentioned there doesn't work in LinuxMint 20.3
$ whoami
nikhil
pip install keyring
I created an executable python script as follows:
import keyring
import getpass
keyring.set_password('login', 'nikhil', getpass.getpass('Password: '));
On executing the script and entering the password, the Login keyring still remains locked. Any suggestions?