From 29f0feb620354669c8b3f99c73f0074a362d1d9b Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Fri, 3 Nov 2017 00:28:18 +0000 Subject: [PATCH] Add check before starting gnome-keyring-daemon to prevent env-dump --- .profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.profile b/.profile index 496c5d3..98fe1ac 100644 --- a/.profile +++ b/.profile @@ -32,4 +32,8 @@ if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then eval $(dbus-launch --sh-syntax --exit-with-session) dbus-update-activation-environment --systemd DISPLAY fi -export $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gnupg) + +# Start the gnome-keyring if it's installed +if which gnome-keyring-daemon &>/dev/null; then + export $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gnupg) +fi