Hello!
I use xubuntu 22.4 in a school lab. Kids use the guest account. I just updated the lab, and I am getting the login keyring prompt when Chrome is opened.
I had gotten rid of that prompt last year, by creating a regular user account, deleting the keyrings and creating a blank password.
I then copied the regular user .local and .config to the /etc/skel folder
This used to work in getting rid of it, but now it does not.
Any ideas on getting rid of this login prompt for a Guest account?
Chrome works if you cancel it, but it is kind of a pain for users.
Chrome only pops that box because itâs trying to open the GNOME Keyring (the thing that stores saved passwords). A guest-session has no login password, so the keyring never âunlocksâ and Chrome asks for one.
Quick fix: tell Chrome not to use the keyring
Make a tiny wrapper script the kids will click instead of the normal launcher.
Now every userâguest includedâlaunches Chrome with --password-store=basic, which keeps its stuff in a plain JSON file under ~/.pki/ and never asks for a keyring.
Other routes (if you prefer)
Install a real password for the guest keyring*each time with a login scriptâbut that defeats the point of âguestâ.
Purge gnome-keyring entirely, but some apps rely on it.
Switch to Chromium snap: it already defaults to --password-store=basic in a confinement that wipes data on logout.
If you do not need Chrome to store passwords anyway you may try to disable âOffer to save passwordsâ and similar options within âchrome://settingsâ. Maybe this stops Chrome from accessing keyring but I do not know.
You can add password-store=basic directly to /usr/share/applications/google-chrome.desktop, and it will work just remember Chrome updates will overwrite that file, so youâll have to re-edit it each time. The wrapper script avoids that by pointing to a file Chrome never touches.
If the desktop file gets overwritten by Chrome updates also the changes pointing to the script will get overwritten. And if copying the desktop file to another location solves this then this should also work without âwrapperâ script. But maybe Iâm missing something.
Youâre right about the desktop file search order:
Desktop-file priority:/usr/local/share/applications/ is read before /usr/share/applications/.If you copy google-chrome.desktop there and addâpassword-store=basic, Chrome updates wonât overwrite it.
The wrapper script is just an extra convenience when you:
want one place to tweak flags for several Chrome channels (stable/beta), or
might add more options later without touching the desktop file again.
These are internet only machines, basically internet kiosks. I have no apps the kids can click on but Chrome, so I tried the apt purge gnome-keyring and it got rid of the error logging in as guest. Thanks so much.
To prevent this you can simply copy the original file to ~/.local/share/applications and do your edits there, this path will take precedence and wonât get overwritten by app updates âŠ