About the Chrome and the keyrings
This problem occurs because Chrome wants to store usernames/passwords in the keyring (so they are encrypted). Therefore, every time you open Chrome, it tries to unlock the keyring.
Please note that, in Linux, Chrome can use different keyring types for the passwords you store in the browser:
- Basic keyring: where Chrome stores passwords in a local SQLite database called “Login Data” (
$HOME/.config/chromium/Default/Login Data
). There, the passwords are unencrypted.
- Desktop keyrings: (i.e., gnome-keyring or KWallet) where Chrome stores the passwords in the services provided by GNOME or KDE. It stores the encrypted passwords in a special database that must be unlocked before it can be used.
To disable the “unlock your keyring” popup permanently, you may (1) instruct Chrome to avoid the desktop keyrings or (2) create a desktop keyring or modify the default one using Seahorse (for GNOME) or KDE Wallet Manager (for KDE).
You may instruct Chrome to avoid the desktop keyrings and use a local database. If you do that, Chrome will not try to unlock the keyring again. However, every time you instruct Chrome to "remember a password", the password will be stored in plan-text in the your local computer. An expert user may get access to your passwords in plan-text if you use this alternative. This solution is recommended only if you do not ask Chrome to remember your passwords.
Instructing Chrome to avoid the keyring
To run Chrome without using the keyring, you may use the option --password-store=basic
:
$ google-chrome --password-store=basic
Modifying the Chrome launcher (icon) to avoid the keyring
Considering that you usually run Chrome doing a doble-click on an icon, you must change the command for the icons you use to include the additional option to run chrome in this way all the time. You may edit (1) the global launcher in the /usr/share/applications/google-chrome.desktop
folder or (2) the personal launcher file located in the ~/.local/share/applications/
directory.
Edit the launcher file. For instance, using gedit
sudo vi /usr/share/applications/google-chrome.desktop
Modify the Exec=
line to include the --password-store=basic
option
Exec=/opt/google/chrome/google-chrome --password-store=basic (and any other option you want)