Obisidian URI will not open Obsidian if parent process exit too fast

Steps to reproduce

Python open obsidian uri not work

import webbrowser
webbrowser.open("obsidian://open?vault=myVault&file=mon.md")

Expected result

Open certain document provided in URI

Actual result

Obsidian not run

Environment

  • Operating system: Windows 10 21H1
  • Debug info:
(.venv) PS >python main.py' 

2022-03-31 00:18:54 Loading updated app package C:\Users\<deleted>\AppData\Roaming\obsidian\obsidian-0.14.2.asar
Received callback URL obsidian://open/?vault=myVault&file=mon.md
2022-03-31 00:18:54 Checking for update using Github
2022-03-31 00:18:54 Success.
2022-03-31 00:18:54 Latest version is 0.14.2
2022-03-31 00:18:54 App is up to date.

(.venv) PS >

Additional information

import webbrowser
webbrowser.open("obsidian://open?vault=myVault&file=mon.md")

# Append this prevent parent process exit, obsidian run normally and uri work
abc = input()
1 Like

I don’t consider this a bug. Moved to developer and api

1 Like

i am having the same problem here. I will appreciate if devs can address this issue in some way, i know it is not a bug per se. But it is too technical for a normal user of the app to handle on his own.

Thank you