Gnome-keyring not unlocking

60 views
Skip to first unread message

Leon Christopher Dietrich

unread,
Sep 22, 2021, 3:46:03 AM9/22/21
to freebsd-...@freebsd.org
Hi there,

I recently switched from running i3 on Xorg to running sway (Wayland)
due to issues that I encountered with a new version of a software I
really need to use when running Xorg. Everything went well except for
the Nextcloud desktop synchronization tool which refuses to log in due
to not being able to read/write to a locked key ring. Trying to unlock
the key ring manually fails (seahorse simply does nothing when clicking
on "unlock").

The deamon is running. Issuing `ps -aux | grep keyring` proves so. The
strange ting is that my /tmp/xdgdir/keyring directory only lists sockets
for control and pkcs11 while the daemon was started with

```
eval $(/usr/local/bin/gnome-keyring-daemon --start
--components=gpg,pkcs11,secrets)
export GNOME_KEYRING_CONTROL=/tmp/xdgdir/keyring
```

This is my content of the .local/share/keyrings directory:

```
➜ l .local/share/keyrings
total 18
drwx------   2 doralitze  doralitze     4B Sep 22 09:14 .
drwx------  10 doralitze  doralitze    12B Sep 22 09:39 ..
-rw-------   1 doralitze  doralitze   1.1K Sep 21 15:00 login.keyring
-rw-r--r--   1 doralitze  doralitze   207B Sep 22 09:13 user.keystore
```

I'm not having any clue left on what's going on and would appreciate any
help.

Thanks

_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Leon Dietrich

unread,
Sep 24, 2021, 8:11:25 AM9/24/21
to freebsd-...@freebsd.org
Hi,

I found a work around for this matter and like to share it in case
someone else might
run into this issue.

> I recently switched from running i3 on Xorg to running sway (Wayland)

As it turns out gnome-keyring uses pinentry-gnome to ask for a passphrase
and will output no error message if it fails to do so. pinentry-gnome does
not seam to work with sway at the moment and will silently fail when trying
to unlock the key ring. A work around would be to either disable the
passphrase
of the key ring entirely using Xorg again (make sure your passwords are
protected
in another way like for example full disk encryption) or use a PAM
enabled login manager
*that does not switch dbus sessions* to have the key ring being unlocked
prior to starting sway.

I hope someone will consider these information's useful.
Reply all
Reply to author
Forward
0 new messages