File explorer in electron does not see smb folders

Hi, I used to use obsidian in a following setup:
I have my vault stored on an smb folder and I accessed this folder through the obsidian app by clicking ‘open folder as vault’

However, after a recent electron update the file explorer launched by obsidian only sees local files and USB drives, despite me mounting my smb folder (as shown on the image below)

vs what I see in dolphin

2024-12-19_15-47_1

Is anybody aware of a workaround I could use? Also, please pardon me if I omitted any crucial information as this is my first post here, I will add all the necessary info if needed

I think I saw other topics where the kio has some difficulties mounting smb folders.

You could use gvfs instead of kio.

I use pcmanfm-qt and gvfs-smb

This is possibly related to a KDE bug:

Bug 480779 Can not add Google to Online Accounts anymore using a recent version of signon-ui

This was among 3 very high priority Plasma bugs and has apparently been fixed with the 6.3.0 Plasma release.

This Week in Plasma - Saturday, 7 December 2024

This may or may not be overkill for your situation, but I find using Syncthing is a very convenient method to sync my Obsidian vaults (and other document sets) across the LAN, and also when multibooting. @Mirdarthos also does something similar and might like to share an opinion.

You asked for workarounds. I hope this qualifies.

Regards.

I don’t use smb, so I can’t test this, but does it make any difference if you use a different file chooser? Try launching Obsidian from the terminal with

GTK_USE_PORTAL=1 obsidian

to use the KDE-based file chooser.

One option would be to mount the share with a systemd mount unit. The plus is it’s DE-agnostic. Youalso don’t even have to use SMB, you cwn use SSH or just about any otherprotocol out there.

Another option would, indeed, be syncthing. Butitdoes require a wee bit more setup, but its awesomeness andconvenience can’t be overstated.