Using the Gnome Keyring with Chromium in XFCE

If you're using XFCE and would like to use Gnome's Keyring to store Chromium passwords, you could start chromium with the following options.

$ chromium --password-store=gnome

(You'll should also install the seahorse package.)

However if you want to make this change persistent, you need to set CHROMIUM_FLAGS so it'll get set every time you launch XFCE. Here is one such configuration:

$ cat ~/.config/xfce4/xinitrc

export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --password-store=gnome"

. /etc/xdg/xfce4/xinitrc

Note that changing ~/.bashrc is not enough as the XFCE desktop environment doesn't read it at the beginning of new sessions. I read forum poststs instructing others to edit a local copy of /etc/xdg/xfce4/xinitrc, but I don't want a stale copy when Debian inevitably updates the original file. It's also important to put your change before the final "." line because the sourced xinitrc script won't return execution until the XFCE session completes, if at all.

Once you've made the change, log out then back in. Check the following URL in chromium:

chrome://version

Your new setting should be listed among the default flags.

Posted: 25 Aug 2015

Author: Andrew Engelbrecht