41-disable-ssh-agent 281 B

123456789101112131415
  1. #!/bin/sh
  2. set -e
  3. # Disable ssh-agent in /etc/X11/Xsession.options
  4. # (seahorse / gnome-keyring are more user-friendly)
  5. echo "Disabling ssh-agent"
  6. OPTS_FILE='/etc/X11/Xsession.options'
  7. [ -f "${OPTS_FILE}" ] || exit 11
  8. sed -i'' 's,^use-ssh-agent,#use-ssh-agent,' "${OPTS_FILE}"