Cannot start flatpak app with yubikey connected
I just stumbled over the following scenario:
- install secrets via
flatpak install flathub org.gnome.World.Secrets
- plug in yubikey
- start application
This won't work and therefore I checked via flatpak run org.gnome.World.Secrets
resulting in:
flatpak run org.gnome.World.Secrets
(process:2): Gtk-WARNING **: 21:20:06.917: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/gsecrets/application.py", line 120, in do_activate
window = self.new_window()
^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/gsecrets/application.py", line 70, in new_window
window = Window(application=self)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/gsecrets/widgets/window.py", line 48, in __init__
self.key_providers = Providers(self)
^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/gsecrets/provider/providers.py", line 23, in __init__
self.providers.append(key_provider(window))
^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/gsecrets/provider/yubikey_provider.py", line 68, in __init__
self.yubikeys = self.get_all_yubikeys(False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/gsecrets/provider/yubikey_provider.py", line 87, in get_all_yubikeys
str(yubikey.serial()),
^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/yubico/yubikey_usb_hid.py", line 455, in serial
return self._read_serial(may_block)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/yubico/yubikey_usb_hid.py", line 484, in _read_serial
response = self._device._read_response(may_block=may_block)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/yubico/yubikey_usb_hid.py", line 166, in _read_response
res = self._waitfor_set(yubikey_defs.RESP_PENDING_FLAG, may_block)[:7]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/yubico/yubikey_usb_hid.py", line 258, in _waitfor_set
return self._waitfor('and', mask, may_block)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/yubico/yubikey_usb_hid.py", line 310, in _waitfor
raise yubikey_base.YubiKeyTimeout(reason)
yubico.yubikey_base.YubiKeyTimeout: <YubiKeyTimeout instance at 0x7fb3f3336440: Timed out waiting for YubiKey to set status 0x40>
I am having the following additional data:
- OS: Fedora Silverblue 39.20240325.0
- Yubikey: Device type: YubiKey 5C Nano Firmware version: 5.4.3
- Secrets: org.gnome.World.Secrets 9.2
And some more observations.
- Secrets starts normally when no yubikey is connected
- It does not crash when yubikey is re-plugged
- One can open a second instance even with a plugged in yubikey
Please feel free to request further information if helpful.
Edited by Daniel Schier