PF4Public / gentoo-overlay

Personal Gentoo overlay
80 stars 20 forks source link

net-im/element-desktop: unable to restore session if keytar is not installed #371

Open aschaap opened 2 months ago

aschaap commented 2 months ago

Thank you for this great set of ebuilds.

Previously, I could quit and reopen element-desktop and remain logged in; when it stopped doing this (perhaps to lack of disk space), I cleared ~/.config/Element (and ~/.config/Riot), but sessions remained unable to persist across restarts. Launching from the CLI showed that both keytar and seshat were missing; installing keytar via npm i -g keytar seems to have fixed my issue. I have not customized USE flags for this package, so native-modules and build-online remain off.

An easy solution would be to add a note in pkg_postinst() saying to run npm i -g keytar, if this is the best way to solve this (is it?). Is this expected behaviour? Are we supposed enable the USE flags mentioned above instead?

PF4Public commented 1 month ago

By any chance, have you noticed at which version this started to occur?

aschaap commented 1 month ago

Thanks for the quick response! Unfortunately not; I don't have an exact version number, but it's at least a few versions ago at this point; I've been trying to fix this for a few weeks now and finally invested some time.

PF4Public commented 1 month ago

This does look similar to your issue: https://github.com/element-hq/element-desktop/issues/1853

Could you mention there that it works with keytar manually installed?

aschaap commented 1 month ago

Done, thank you for finding that bug.