# This file is sourced by Xsession(5), not executed.

SEAHORSE=/usr/bin/seahorse-agent
GPGAGENT=/usr/bin/gpg-agent

if [ -n "$GNOMERC" ] && [ -x $SEAHORSE ] &&  ! [ -x $GPGAGENT ]; then
	BINARY="${STARTUP%% *}"
	OPTIONS="${STARTUP#* }"
	# BINARY and OPTIONS are the same if no option in STARTUP
	if [ "$BINARY" != "$OPTIONS" ]; then
		STARTUP="$BINARY -- $OPTIONS"
	fi
	STARTUP="$SEAHORSE --execute $STARTUP"
fi

