Repository: vscode
Issue: vscode lock-up for ~30s if database is locked with `OSCrypt tried libsecret but couldnt initialize`
Labels: bug,upstream,linux,electron,keychain

Type: <b>Bug</b>

- use libsecret (`~/.vscode/argv.json` `"password-store": "gnome-libsecret"`, https://github.com/microsoft/vscode/issues/187842#issuecomment-1634523221)
- use keepassxc (or others?)
- have a key in the database for vscode
- have the SSI database locked and try to start VSCode
- observe vscode lockup for ~30 seconds and have message `[92965:1211/204454.929093:WARNING:key_storage_linux.cc(183)] OSCrypt tried Libsecret but couldn't initialise.`

i believe this is related to the dummy entry Chrome makes and locks-up if it cannot find it in any locked database (even if they had already been opened once in keepassxc and so should be "warm").
note that this was not a problem with vscode 1.79's keytar, ~~there it would in 80% of cases ask me to unlock the database first (weirdly keytar's implementation was timing out sometimes and i am not sure why)~~ *
EDIT: 1.79.2's keytar and keepassxc sometimes asks for unlocking the database but not always ([likely a keepassxc bug if dbus-monitor is anything to go by](https://github.com/keepassxreboot/keepassxc/issues/10096)); but at least keytar did not make vscode un-useable for such a long time (but it did prevent / prolong shutdown if keytar couldnt resolve / is still trying to resolve)

VS Code version: Code 1.85.0 (af28b32d7e553898b2a91af498b1fb666fdebe0c, 2023-12-06T22:27:05.695Z)
OS version: Linux x64 6.6.5-1-MANJARO
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 7 5800X 8-Core Processor (16 x 3700)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>video_decode: enabled<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|3, 2, 2|
|Memory (System)|15.53GB (9.39GB free)|
|Process Argv|. --verbose --crash-reporter-id 3159ccf7-dead-4761-b348-a6094ef14c0c|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|plasmawayland|
|XDG_CURRENT_DESKTOP|KDE|
|XDG_SESSION_DESKTOP|KDE|
|XDG_SESSION_TYPE|wayland|
</details><details><summary>Extensions (21)</summary>

Extension|Author (truncated)|Version
---|---|---
path-intellisense|chr|2.8.5
gitignore|cod|0.9.0
vscode-markdownlint|Dav|0.53.0
vscode-eslint|dba|2.4.2
gitlens|eam|14.5.2
EditorConfig|Edi|0.16.4
prettier-vscode|esb|10.1.0
html-slim-scss-css-class-completion|gen|1.7.8
gc-excelviewer|Gra|4.2.58
vhs|gri|0.0.4
todo-tree|Gru|0.0.226
vscode-test-explorer|hbe|2.21.1
graphql-for-vscode|kum|1.15.3
rainbow-csv|mec|3.9.0
git-graph|mhu|1.30.0
test-adapter-converter|ms-|0.1.8
vscode-xml|red|0.26.1
bash-beautify|sha|0.1.1
markdowntable|Tak|0.11.0
even-better-toml|tam|0.19.2
markdown-all-in-one|yzh|3.5.1


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30899288
vscaac:30438847
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
3biah626:30602489
89544117:30613380
2i9eh265:30646982
showlangstatbar:30737416
0bi6i642:30917235
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
welcomedialog:30910333
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30902429
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:30885897
pythontbext0:30879054
accentitlementsc:30887149
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
aa_t_chat:30882232

```

</details>

<!-- generated by issue reporter -->