Fix Mysql Workbench passwords not being saved in keychain – Debian – Ubuntu

 A fix for this issue with Ubuntu

echo $XDG_RUNTIME_DIR

/run/user/1000

add this path to your .profile 

GNOME_KEYRING_CONTROL=$XDG_RUNTIME_DIR

reload the source

log off your gnome session,

try with workbench again

You should be prompted for a password to unlock the keychain if it is locked. Use your current account password to do so.

This is a temporary workaround. 

 

Another fix submitted by a user

 

Thanks for the tip! I placed the following wrapper script at /usr/local/bin/mysql-workbench to work around the bug:

#!/bin/sh
if [ -n "${XDG_RUNTIME_DIR}" ]; then
  GNOME_KEYRING_CONTROL="${XDG_RUNTIME_DIR}/keyring/control"
  [ -z "${GNOME_KEYRING_CONTROL}" ] || export GNOME_KEYRING_CONTROL
fi
/usr/bin/mysql-workbench ${@}
 
 

 

References:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769393