element-hq / element-hq/element-web

SafeStorage does not work with KeePassXC after upgrading to v1.11.101

Open
#32,041 14 comments 10 reactions 0 assignees View on GitHub
A-Electron A-Storage O-Occasional O-Uncommon S-Major T-Defect Z-Linux Z-Platform-Specific Z-Upstream
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Use KeePassXC as Freedesktop Secret Service provider
2. Upgrade to v1.11.101
3. Run element-desktop

This issue is similar to issue element-hq/element-web#32416 but I believe it is different, because I use KeePassXC instead of gnome-keyring. element-desktop is also not crashing but displays an error message.

### Outcome

#### What did you expect?

element-desktop running normally.

#### What happened instead?

An error windows opens instead of the main interface of gnome-keyring

![Image](https://github.com/user-attachments/assets/d824d7a3-7f44-48da-b1c4-f666d138e459)

```
/home/vincent/.config/Element exists: yes
/home/vincent/.config/Riot exists: no
(node:9848) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `element-desktop --trace-deprecation ...` to show where the warning was created)
Loading app config: /opt/Element/resources/webapp.asar/config.json
Loading local config: /home/vincent/.config/Element/config.json
Skipping nonexistent file: /home/vincent/.config/Element/config.json
Reached Electron ready state
Starting auto update with base URL: https://packages.element.io/desktop/update/
Auto update not supported on this platform
Fetching translation json for locale: en_EN
Changing application language to en
Fetching translation json for locale: en
Resetting the UI components after locale change
Resetting the UI components after locale change
Ensuring storage is ready
safeStorage backend 'basic_text' selected, 'undefined' in config.
(node:9848) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.
```

Going back to v1.11.101 solves the issue, and element-desktop launches normally (and gets secrets from KeePassXC).

### Operating system

Debian

### Application version

v1.11.101

### How did you install the app?

https://packages.element.io/debian/pool/main/e/element-desktop/index.html

### Homeserver

_No response_

### Will you send logs?

Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.