Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encrypted message search broken due to sqlcipher linking conflict (with workaround) #51

Closed
Skirmisher opened this issue Dec 4, 2021 · 0 comments

Comments

@Skirmisher
Copy link

In short, GTK3 depends on sqlite by way of its "Tracker" indexing component, which conflicts with Element trying to link to sqlcipher, since sqlcipher uses the same symbols as sqlite. This causes encrypted message search to fail to initialize, and the settings page displays the message Error opening the database: SqlCipherError("Sqlcipher support is missing").

This can be worked around by specifying libsqlcipher in LD_PRELOAD, as described in the Element issue. On Fedora 35, I have added LD_PRELOAD=/usr/lib64/libsqlcipher-3.34.1.so.0 to my copy of /usr/bin/io.element.element.wrapper.sh. (Note that after doing this, I got an "invalid passphrase" error instead of a "missing sqlcipher" error and had to reset the database anyway, but after that it worked fine.)

@taw00 taw00 closed this as completed Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants