MxLinux with i3 and Obsidian Secret Storage

Hi.

I’m running Obsidian (flatpak, version 1.12.7) under MxLinux.

Under XFCE everything’s fine but under i3 Obidian is complaining about missing keyring (or similar). I’ve checked and gnome-keyring-daemon is running after boot.

Since I don’t want to store my secrets without cryptography, I’m using Obsidian only under XFCE. But this is not the best way to work (switching between i3 and XFCE).

What can I do to fix this error?

Thanks in advance!

This is an Electron issue. Obsidian uses Electron Secret Storage, which discovers system secret backend for Gnome and KDE only, it doesn’t care about whether gnome-keyring-daemon is running or is in XDG portal. Issue: Linux: Use Secret Service API in DBus to attempt to autodiscover secret provider · Issue #47436 · electron/electron · GitHub.

Auto discovery is improved in Electron 42, but unfortunately Obsidian still uses 39 (which is de facto in “end of life” according to Electron team, I hope Obsidian team can update it soon).

If you can self-package Obsidian (definitely Flatpak isn’t designed for this), you can try to add --password-store=gnome-libsecret to the Electron that loads Obsidian’s app.asar.

Thanks a lot. Unfortunately I’ll have to wait for an Obsidian’s update, since I’m not able to self-package the app.

But this mean that the same problem arise in XFCE? There are no error or “alarm” under XFCE…

Sorry, I didn’t explain well in my previous response. My for Gnome and KDE only meant for Gnome-like and KDE-like environment. In Electron repo docs, desktop environments that will be identified as gnome-keyring available are X-Cinnamon, Deepin, GNOME, Pantheon, XFCE, UKUI, and unity. This explains why XFCE works but not i3.

And I found a hacky workaround that may address this issue: [Bug]: Safestorage detection fails on linux outside of predefined desktop environments · Issue #39789 · electron/electron · GitHub. It works by setting GNOME_DESKTOP_SESSION_ID.

Thanks a lot. I’ll read better your link wen I’ll be at home with some free tme to dedicate to this matter.

Thanks a lot for your help!