Steps to reproduce
- Have two vaults
vaultA
andvaultB
(no spaces in their names). -
vaultA
has a notenoteA
- With Obsidian closed, try to open an Obsidian URL either in the browser or through
xdg-open
:- obsidian://vault/vaultB
- obsidian://vault/vaultA/noteA
- obsidian://vault/vaultA
- With
vaultA
open in Obsidian try to open either of these:- obsidian://vault/vaultB
- obsidian://vault/vaultA/noteA
- Try the absolute path to
noteA
- obsidian:///home/argen/vaultA/noteA
Expected result
With vaultA
open in Obsidian
- Opening the link for
obsidan://vault/vaultA/noteA
would opennoteA
- Opening the link for
obsidian://vault/vaultB
would openvaultB
Actual result
- If Obsidian is closed, the last opened vault is opened.
- If Obsidian is open, the vault picker is shown.
Environment
- Operating system: Ubuntu 18.04 with gnome-flashback and i3
- Obsidian version: 0.8.15, installer v.0.8.14
Additional information
My obsidian.destkop
file located in ~/.local/share/applications/
:
[Desktop Entry]
Name=Obsidian
Comment=Markdown Notetaking App
GenericName=Text Editor
Type=Application
Path=/home/argen/bin
Exec=Obsidian-0.8.14.AppImage %u
Icon=obsidian
StartupWMClass=obsidian
MimeType=text/html;x-scheme-handler/obsidian;
I also tried with the unpacked AppImage, and Exec
pointing to the obsidian
executable with the same result.
I have also ran the following:
xdg-mime default obsidian.destkop x-scheme-handler/obsidian
update-desktop-database
The output of both xdg-mime query default x-scheme-handler/obsidian
and xdg-settings get default-url-scheme-handler obsidian
is obsidian.desktop
.
The relevant lines from my ~/.config/mimeapps.list
:
[Default Applications]
...
text/html=obsidian.desktop
x-scheme-handler/obsidian=obsidian.desktop
The text/html
mime type gets added whenever I open Obsidian, but I don’t think that plays a role here.
Edit: Looking a little closer at the mimeapps.list
, something is not right here. Opening Obsidian makes it the default application for html
files, instead of the browser. I don’t know if this is related, but this is definitely a bug. I don’t think Obsidian is intended to open other local html files, but even if it is it should be added to the [Added Associations]
section instead of making it the default. In fact, double clicking a local html file behaves in a similar way as trying to open an obsidian link: if Obsidian is open, the vault picker is chosen or if it’s closed, the last vault is open.