Not too long ago I decided to switch back to KDE as my desktop environment. My reasons were aesthetic and technical. I do think that Canonical’s Ubuntu plans are great. I like a lot of what they’re doing. But it’s all a mish-mash of technologies and ideas. I know that in some ways that’s what Linux is… anyway I digress.
I switched to kdm as the display manager, but that immediately caused a problem for me since the gnome-keyring-daemon powers Ubuntu One integration, which I love. I also need it for MySQL Workbench. So I set about figuring out how I could get gnome-keyring to authenticate without me having to unlock it with a second password prompt when I log in.
I found quite a bit of help online, but not all of it was helpful. In the end I had installed the
sudo apt-get install libpam-gnome-keyring
Then I added the file /etc/pam.d/common-pamkeyring with this content
auth optional pam_gnome_keyring.so try_first_pass
session optional pam_gnome_keyring.so auto_start
and added a line to the end of /etc/pam.d/kdm
@include common-pamkeyring
Many thanks to others that share online- especially this post, which helped me get over the last hurdle- a simple text change.
Looks like instead of all that effort you can also just install kdm-gdmcompat and get the same result. You can’t have both of these in place at once though- you’ve been warned.
Hmm. It looks to me like you need to decide which of these to use from the beginning. I tried switching from my gnome-keyring solution to gdmcompat on my desktop with no luck. But gdmcompat is working fine on my laptop where I installed it from the beginning. Rather than starting with an empty keyring I’m sticking to my longer, first solution for now. But both of these methods seem to solve the gnome-keyring issue- just decide from the start which to use. Since gdmcompat looks like it does additional things- it might help to use that.
thanks, finally got it working in kde 😉
You’re welcome- glad it was helpful.
I’ve been wanting to fix this for a long time, but I couldn’t make this solution work. I am running lightdm rather than kdm, so I tried making that last change in /etc/pam.d/lightdm. Ubuntu 14.04. Still, every time I go to connect in MySQL Workbench, it will not save. Also, running from the command line still complains (maybe this is expected though?): ** Message: Gnome keyring daemon seems to not be available. Stored passwords will be lost once quit
As soon as I updated to 14.04 my Gnome keyring stopped working under KDE. I’ll see if I can figure out a fix on Monday and I’ll let you know if I find anything.
@Dave – Did you get it to work? Updated to latest SolydK (debian testing) and it stop working for me as well,
Unfortunately no- never was able to get it working again.
on my fedora 20, line added to /etc/pam.d/kdm should be
session include common-pamkeyring
to get it work
Got it to work with a small patch from Arch -> https://aur.archlinux.org/packages/mysql-workbench – Adding:
if test -x “/usr/bin/gnome-keyring-daemon”; then
export GNOME_KEYRING_CONTROL=1
fi
to /usr/bin/mysql-workbench