June, 2021

Gnome Keyring Daemon and SSH Agent

Start Daemon in LightDM for display manager environment

Add to ~/.xprofile fle:

if test "$DESKTOP_SESSION" == "awesome"; then
	eval `gnome-keyring-daemon --start`

This sets up SSH_AUTH_SOCK environment variable for use with ssh from anywehre.

It is possible that /usr/bin/gnome-keyring-daemon --daemonize --login is a better way to start gnome keyring daemon, because it is used in XFCE.

XFCE and Gnome Keyring Daemon

Follow xfce:xfce4-session:advanced [Xfce Docs] instructions:

enable the Launch GNOME services on startup in the Advanced tab of the settings dialog. If you do this xfce4-session will not attempt to start the gpg- or ssh-agent.

If ssh-agent is still started by XFCE disable it with:

xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false
xfconf-query -c xfce4-session -p /startup/gpg-agent/enabled -n -t bool -s false