X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/9850239276b1911fe285ac625ce8d8d5d9630190..be325acf70bdbded6d86aa491720d39657fd2e73:/dot/bash_profile diff --git a/dot/bash_profile b/dot/bash_profile index 513f754..24427bd 100644 --- a/dot/bash_profile +++ b/dot/bash_profile @@ -198,6 +198,16 @@ ulimit -S -c 0 # --- Start an ssh authentication agent --- +if [ "$DBUS_SESSION_BUS_ADDRESS" ] && + dbus-send --session --print-reply --dest=org.freedesktop.DBus \ + / org.freedesktop.DBus.GetNameOwner string:org.gnome.keyring \ + >/dev/null 2>/dev/null && + stuff=$(gnome-keyring-daemon -s 2>/dev/null) +then + eval "$stuff" + export GNOME_KEYRING_CONTROL SSH_AUTH_SOCK +fi + eval `start-ssh-agent -b` if [ -z "$__mdw_bashrc" ] && [ "$__mdw_force_secure_session" = "yes" ] ||