iridium icon indicating copy to clipboard operation
iridium copied to clipboard

Crash on first run when attempting to set up credentials

Open bww opened this issue 4 years ago • 3 comments

It's not possible to get past the "Identification" screen, I believe due to the fact that there is no keyring, although I'm not completely sure:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NoResult', shell/src/secret.rs:8:55
Linux XXX 5.8.16-2-MANJARO #1 SMP PREEMPT Mon Oct 19 11:33:03 UTC 2020 x86_64 GNU/Linux

I'm using KDE, fwiw.

bww avatar Nov 12 '20 19:11 bww

Thanks for the report, I ignored that issue for the Windows use case but yeah, looks like I need a more general cross-platform solution.

matze avatar Nov 13 '20 08:11 matze

Perhaps of interest: while using Secret Service for a side project, I found that using get_any_collection (instead of get_default_collection) works correctly with KWallet. At least insofar as I can successfully store and retrieve records from some unspecified collection.

According to the docs this function tries the default collection first, then some others in a sensible order. So in cases where the default collection works the behavior shouldn't change. You might be able to get way with just swapping that out.

bww avatar Feb 14 '21 05:02 bww

Thanks for the hint, I changed that. But I will keep this issue open because all the unwrap()s should better be replaced by proper error handling. Although I am not sure what to do if we cannot store anything at all.

matze avatar Feb 14 '21 18:02 matze