I'm trying to configure my Linux environment to open
obsidian:// URIs using the Obsidian app (see Using Obsidian URI).
This is the flow I'm using. I'm doing this on a clean Ubuntu machine to make sure it reproduces:
Obsidian.AppImagefile is stored in
AppImagefile has execute permissions.
This is my
[Desktop Entry] Name=Obsidian Exec=/home/rachum/obsidian/Obsidian.AppImage %u Terminal=false Type=Application Icon=/home/rachum/obsidian/icon.png StartupWMClass=obsidian X-AppImage-Version=0.8.15 Comment=Obsidian Categories=Office; MimeType=text/html;x-scheme-handler/obsidian;
xdg-openworks as intended:
This command line opens the Obsidian app with the new note and content.
In Firefox (preinstalled), typing the above URI into the URL bar also opens the Obsidian app with the new note and content.
I installed Google Chrome by downloading the
.debfile from the official Chrome site and running
dpkg -i <.deb file>
Typing the above URI in Chrome just redirects me to a Google search for "obsidian://new?vault=notes&name=note&content=content".
Why is Chrome not respecting the XDG configuration?
Update #1: adding more details to answer comment.
~/.local/share/applications/mimeapps.list file looks like this:
[Default Applications] x-scheme-handler/obsidian=obsidian.desktop
~/.local/share/applications/mimeinfo.cache file looks like this:
[MIME Cache] text/html=obsidian.desktop; x-scheme-handler/obsidian=obsidian.desktop;