Open folders via CLI that do not contain .obsidian folders in them or are not yet registered in ./config/obsidian/obsidian.json as a vault ( These are folders not opened via the GUI greeting screen )
**this also applies to opening folders via CLI in general
Proposed solution
In order to open a vault using uri callbacks ( Which is currently broken in Linux, and does not function correctly ) you must use xdg-open to get the callback to behave correctly.
You also need to have the vault defined in ./config/obsidian/obsidian.json with the vault name, vault path, a random ID, and a unix timestamp.
these are all you need to be able to open a vault via uri callbacks. I think it would be a great idea and help people if there was an implementation of a simple command like āobsidian ā/path/to/folderāā to initialize and open a vault. Otherwise, itās almost undocumented and impossible to get to workā¦ and when you do, it has to be a vault that was already opened via the GUIā¦
Current workaround (optional)
using xdg-open to get callback uri to work
Related feature requests (optional)
I have seen many people post asking for help with this. I also recently needed the feature for a project.